-
Notifications
You must be signed in to change notification settings - Fork 737
Add a runtime API for reset shared heap(chain) #4740
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
base: main
Are you sure you want to change the base?
Add a runtime API for reset shared heap(chain) #4740
Conversation
|
can you elaborate use cases a bit? |
For example, if a WASM module calls |
so,
right? |
| unsigned int wasm_file_size = 0; | ||
| unsigned int stack_size = 16 * 1024, heap_size = app_heap_size; | ||
| char error_buf[128] = { 0 }; | ||
| char error_buf[128] = {}; |
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.
is this a change for "fix some warnings"?
what warning?
| EXPECT_EQ(offset, offset_after_reset); | ||
| EXPECT_EQ(native_ptr, native_ptr_after_reset); | ||
|
|
||
| /* Only on some platform, the os_mmap will memset the memory to 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.
does this mean that in some cases shared memory may have uninitialized user-visible contents?
is it documented somewhere?
No description provided.