-
Notifications
You must be signed in to change notification settings - Fork 623
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[instantiation linking] create and import WASMMemoryInstance for interp #3845
Merged
lum1n0us
merged 27 commits into
bytecodealliance:dev/instantiate_linking
from
lum1n0us:feat/inst_linking_memory
Nov 4, 2024
Merged
[instantiation linking] create and import WASMMemoryInstance for interp #3845
lum1n0us
merged 27 commits into
bytecodealliance:dev/instantiate_linking
from
lum1n0us:feat/inst_linking_memory
Nov 4, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lum1n0us
force-pushed
the
feat/inst_linking_memory
branch
5 times, most recently
from
October 12, 2024 08:34
62b7808
to
1821dfd
Compare
lum1n0us
commented
Oct 15, 2024
lum1n0us
force-pushed
the
feat/inst_linking_memory
branch
10 times, most recently
from
October 21, 2024 14:36
a1d2c27
to
7678f4d
Compare
…ealliance#3871) * exclude fuzz test for scoreboard scan * ci ignore osv-scanner.toml file name inconsistency
…lds (bytecodealliance#3872) Co-authored-by: Deniz Sokmen <[email protected]>
including - memory create and destroy - instnace_new with imports
Besides, it is still an open question if a memory should be exported
This commit refactors the `memory_deinstantiate` function in the `wasm_runtime.c` file. It introduces a new helper function `memory_deinstantiate` to handle the destruction of memory instances. The function checks if the memory is shared and decrements the reference count before freeing the memory. It also destroys the heap handle and deallocates the linear memory. Additionally, the commit fixes the `wasm_destroy_memory` function by calling the `memory_deinstantiate` function and freeing the memory instance. These changes improve the memory management in the interpreter and ensure proper destruction of memory instances.
- Set CMAKE_BUILD_TYPE to Debug in CMakeLists.txt - Add missing printf and fflush statements in import_memory.c - Add assertion for memory data in import_memory.c - Add assertion for memory growth in import_memory.c
…i-threads, and thread_manager.c
Both `WASI_THREADS` and `THREAD_MGR` continue to use loader linking to keep a separate memory instance for each thread they create.
wenyongh
reviewed
Oct 28, 2024
lum1n0us
force-pushed
the
feat/inst_linking_memory
branch
2 times, most recently
from
October 28, 2024 07:00
bf28734
to
f29a36e
Compare
wenyongh
reviewed
Oct 29, 2024
lum1n0us
force-pushed
the
feat/inst_linking_memory
branch
from
October 29, 2024 13:29
f29a36e
to
3a8b5a6
Compare
lum1n0us
force-pushed
the
feat/inst_linking_memory
branch
2 times, most recently
from
October 30, 2024 01:39
7c81eb8
to
fbba2a3
Compare
lum1n0us
force-pushed
the
feat/inst_linking_memory
branch
from
October 30, 2024 02:01
fbba2a3
to
00fec83
Compare
lum1n0us
force-pushed
the
feat/inst_linking_memory
branch
from
November 1, 2024 05:44
cc33703
to
c3efbbb
Compare
… for samples/file
lum1n0us
commented
Nov 1, 2024
lum1n0us
commented
Nov 1, 2024
lum1n0us
commented
Nov 1, 2024
lum1n0us
commented
Nov 1, 2024
This was referenced Nov 3, 2024
wenyongh
reviewed
Nov 4, 2024
wenyongh
approved these changes
Nov 4, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
lum1n0us
merged commit Nov 4, 2024
e030350
into
bytecodealliance:dev/instantiate_linking
383 checks passed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.