-
Notifications
You must be signed in to change notification settings - Fork 733
shared heap: fix some issues and add basic testcase #3801
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
shared heap: fix some issues and add basic testcase #3801
Conversation
5ff2637 to
5f933d7
Compare
core/iwasm/common/wasm_memory.c
Outdated
| if (!(heap = runtime_malloc(heap_struct_size, error_buf, error_buf_size))) { | ||
| goto fail1; | ||
| } | ||
| heap->size = 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.
The size is changed later with size = align_uint(size, os_getpagesize()), had better set heap->size after that, e.g. after L202
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.
Thanks, done
core/iwasm/include/wasm_export.h
Outdated
| WASM_LOG_LEVEL_VERBOSE = 4 | ||
| } log_level_t; | ||
|
|
||
| #if WASM_ENABLE_SHARED_HEAP != 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.
Could you remove this macro control in this file? Including L2122. No need to add macro here, since developer may just use this header file and the compiled wamr runtime lib (libvmlib.a or libiwasm.so), adding the control may lead to compilation error in his project.
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.
Done
5f933d7 to
2387429
Compare
f8d1af9 to
f231061
Compare
Signed-off-by: wenlingyun1 <[email protected]>
Signed-off-by: wenlingyun1 <[email protected]>
Signed-off-by: wenlingyun1 <[email protected]>
Signed-off-by: wenlingyun1 <[email protected]>
6f636c4 to
f05dc75
Compare
No description provided.