wasm-micro-runtime/core/iwasm/common
Wenyong Huang 38c67b3f48
thread-mgr: Fix spread "wasi proc exit" exception and atomic.wait issues (#1988)
Raising "wasi proc exit" exception, spreading it to other threads and then
clearing it in all threads may result in unexpected behavior: the sub thread
may end first, handle the "wasi proc exit" exception and clear exceptions
of other threads, including the main thread. And when main thread's
exception is cleared, it may continue to run and throw "unreachable"
exception. This also leads to some assertion failed.

Ignore exception spreading for "wasi proc exit" and don't clear exception
of other threads to resolve the issue.

And add suspend flag check after atomic wait since the atomic wait may
be notified by other thread when exception occurs.
2023-02-24 20:05:39 +08:00
..
arch Fix stack alignment issue on ia32 (#1934) 2023-02-06 09:07:00 +08:00
iwasm_common.cmake Implement invokeNative asm code for MinGW (#1753) 2022-11-28 17:48:06 +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 Clear some warnings and enable -Werror for NuttX (#1756) 2022-11-28 09:44:33 +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 issues reported by Coverity static analysis (#1974) 2023-02-22 11:10:21 +08:00
wasm_exec_env.c Make memory profiling show native stack usage (#1917) 2023-02-01 11:52:15 +08:00
wasm_exec_env.h Merge branch main into dev/wasi_threads 2023-02-17 08:46:12 +08:00
wasm_memory.c Adding option to pass user data to allocator functions (#1765) 2022-11-30 16:19:18 +08:00
wasm_memory.h Enlarge max pool size and fix bh_memcpy_s dest max size check (#1151) 2022-05-07 16:09:16 +08:00
wasm_native.c Merge branch main into dev/wasi_threads 2023-02-17 08:46:12 +08:00
wasm_native.h Add wasm_runtime_unregister_natives (#1647) 2022-10-28 11:03:39 +08:00
wasm_runtime_common.c thread-mgr: Fix spread "wasi proc exit" exception and atomic.wait issues (#1988) 2023-02-24 20:05:39 +08:00
wasm_runtime_common.h Expose wasm_runtime_call_indirect (#1969) 2023-02-20 18:56:55 +08:00
wasm_shared_memory.c Fix data races in atomic wait/notify and interp goto table (#1971) 2023-02-22 11:43:49 +08:00
wasm_shared_memory.h Use shared memory lock for threads generated from same module (#1960) 2023-02-16 11:54:19 +08:00