-
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] Refactor wasm_runtime_instantiate() #3893
[instantiation linking] Refactor wasm_runtime_instantiate() #3893
Conversation
4016457
to
36646a0
Compare
edddd11
to
f261840
Compare
f261840
to
b71bee8
Compare
The main goal is to let existed code run without modification
…ctor related import handling in thread management
- Remove unnecessary blank line in FindWASISDK.cmake for improved readability - Format function declaration for wasm_runtime_destroy_imports for consistency
637f5db
to
e7a89ee
Compare
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
|
||
WASMExternInstance *spawned_imports = runtime_malloc( | ||
sizeof(WASMExternInstance) * (uint64)spawned_import_count, NULL, | ||
error_buf, error_buf_size); |
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.
An improvement is to malloc memory only when spawned_import_count > 0, so as to avoid warning of allocating memory with size 0.
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.
Ok. I will finish ⬆️ in #3898
8c48d71
into
bytecodealliance:dev/instantiate_linking
based #3845 and #3887