wasm-micro-runtime/core/iwasm/common
Wenyong Huang 4b1a6e5017
Fix repeatedly initialize shared memory data and protect the memory's fields (#2673)
Avoid repeatedly initializing the shared memory data when creating the child
thread in lib-pthread or lib-wasi-threads.

Add shared memory lock when accessing some fields of the memory instance
if the memory instance is shared.

Init shared memory's memory_data_size/memory_data_end fields according to
the current page count but not max page count.

Add wasm_runtime_set_mem_bound_check_bytes, and refine the error message
when shared memory flag is found but the feature isn't enabled.
2023-10-30 11:07:01 +08:00
..
arch Add support for universal binaries on OSX (#2060) 2023-03-30 09:53:07 +08:00
iwasm_common.cmake Add support for universal binaries on OSX (#2060) 2023-03-30 09:53:07 +08:00
SConscript Add ia32 support and fix compiling issue for RT-Thread (#730) 2021-09-07 10:20:14 +08:00
wasm_application.c Fix several typo/warning/unused-code issues (#2655) 2023-10-24 09:19:45 +08:00
wasm_blocking_op.c Implement async termination of blocking thread (#2516) 2023-09-20 18:11:52 +08:00
wasm_c_api_internal.h wasm-c-api: Fix init/destroy thread env multiple times issue (#1766) 2022-12-05 11:16:14 +08:00
wasm_c_api.c Fix duplicate vector init in wasm_module_validate (#2498) 2023-08-23 12:35:46 +08:00
wasm_exec_env.c Fix multi-threading issues (#2013) 2023-03-08 10:57:22 +08:00
wasm_exec_env.h Implement suspend flags as atomic variable (#2361) 2023-07-21 08:27:09 +08:00
wasm_memory.c Fix repeatedly initialize shared memory data and protect the memory's fields (#2673) 2023-10-30 11:07:01 +08:00
wasm_memory.h Fix repeatedly initialize shared memory data and protect the memory's fields (#2673) 2023-10-30 11:07:01 +08:00
wasm_native.c Fix several typo/warning/unused-code issues (#2655) 2023-10-24 09:19:45 +08:00
wasm_native.h Implement module instance context APIs (#2436) 2023-09-07 14:54:11 +08:00
wasm_runtime_common.c Fix repeatedly initialize shared memory data and protect the memory's fields (#2673) 2023-10-30 11:07:01 +08:00
wasm_runtime_common.h Fix repeatedly initialize shared memory data and protect the memory's fields (#2673) 2023-10-30 11:07:01 +08:00
wasm_shared_memory.c Fix repeatedly initialize shared memory data and protect the memory's fields (#2673) 2023-10-30 11:07:01 +08:00
wasm_shared_memory.h Fix memory sharing (#2415) 2023-08-04 10:18:13 +08:00
wasm_suspend_flags.h Implement async termination of blocking thread (#2516) 2023-09-20 18:11:52 +08:00