This repository has been archived on 2023-11-05. You can view files and clone it, but cannot push or open issues or pull requests.
wasm-micro-runtime/samples
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
..
basic Expose wasm_runtime_call_indirect (#1969) 2023-02-20 18:56:55 +08:00
file SGX IPFS: Fix a segfault and support seeking beyond the end of files while using SEEK_CUR/SEEK_END (#1916) 2023-01-30 08:24:12 +08:00
gui Add more types and APIs for attr_container (#1841) 2023-01-09 21:05:30 +08:00
littlevgl Enhance cmake makefiles (#1390) 2022-08-18 16:27:01 +08:00
multi-module Use cmake POSITION_INDEPENDENT_CODE instead of hardcoding -pie -fPIE (#1598) 2022-10-19 01:51:18 +08:00
multi-thread Use shared memory lock for threads generated from same module (#1960) 2023-02-16 11:54:19 +08:00
native-lib samples/native-lib: use the same shared lib name as product-mini (#1669) 2022-11-01 21:55:43 +08:00
ref-types Fix sample ref-types/wasm-c-api build error with wat2wasm low version (#1702) 2022-11-15 13:51:03 +08:00
sgx-ra Create module hash for each module in SGX lib-rats (#1745) 2022-11-24 21:48:50 +08:00
simple Add CIs to release new version and publish binary files (#1648) 2022-10-28 13:55:41 +08:00
socket-api Use cmake POSITION_INDEPENDENT_CODE instead of hardcoding -pie -fPIE (#1598) 2022-10-19 01:51:18 +08:00
spawn-thread Use cmake POSITION_INDEPENDENT_CODE instead of hardcoding -pie -fPIE (#1598) 2022-10-19 01:51:18 +08:00
wasi-threads thread-mgr: Fix spread "wasi proc exit" exception and atomic.wait issues (#1988) 2023-02-24 20:05:39 +08:00
wasm-c-api Upgrade toolkits (#1878) 2023-02-02 09:42:25 +08:00
wasm-c-api-imports Improve wasm-c-api instantiation-time linking (#1902) 2023-02-13 15:06:04 +08:00
workload Upgrade toolkits (#1878) 2023-02-02 09:42:25 +08:00