-
Notifications
You must be signed in to change notification settings - Fork 647
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 WASMGlobalInstance #3914
Merged
lum1n0us
merged 20 commits into
bytecodealliance:dev/instantiate_linking
from
lum1n0us:feat/inst_linking_global
Dec 19, 2024
Merged
Changes from 18 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
9c8fb32
[rebase confliction] Refactor: streamline global instance handling an…
lum1n0us f9a7b6d
Refactor: improve global instance handling
lum1n0us f81662d
llvm-jit can read global values from local inst and import inst
lum1n0us 28c70c6
Refactor: streamline global instance structure and improve global val…
lum1n0us b5593e5
Refactor: remove unused global linking logic and clean up import hand…
lum1n0us 673c005
Refactor: remove unused global offset calculations and simplify globa…
lum1n0us 1f2f89b
Refactor: improve memory management in module deinstantiation and han…
lum1n0us 32f276f
Refactor: enhance multi-module support for global imports and initial…
lum1n0us 3242e32
Refactor: remove unused import functions and enhance global instance …
lum1n0us 1f17245
Refactor: streamline WASI and spec test integration by consolidating …
lum1n0us 6918aff
Refactor: rename native creation functions for spec and wasi test bui…
lum1n0us 972466f
Refactor: enhance table initialization checks and improve spec test t…
lum1n0us be317ce
Refactor: conditionally compile extern instance destruction for spec …
lum1n0us 26d8def
Refactor: simplify memory deinstantiation logic and improve extern in…
lum1n0us fd7dee5
a workaround to fix a compilation issue on Nuttx
lum1n0us 36b8555
Add global definitions for spectest and test modules in libc_builtin_…
lum1n0us b1b6a32
Refactor: remove unused table deallocation logic in wasm_runtime_inst…
lum1n0us 98333b6
format problem
lum1n0us 9079012
Refactor: enhance global instance handling and add static assertions …
lum1n0us c36a203
Refactor: update static assertions for AOTGlobalInstance offsets and …
lum1n0us File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Oops, something went wrong.
Oops, something went wrong.
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.
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.
When multi-module isn't enabled and libc-builtin is enabled, the global isn't linked by default, is it expected? Or will the iwasm's main.c link the global when instantiating?
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.
YES. only apply
wasm_native_lookup_libc_builtin_global()
when executing loading linking. Otherwise,core/iwasm/libraries/libc-builtin/spec_test_builtin_wrapper.c
will take over