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/core
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
..
app-framework Add more types and APIs for attr_container (#1841) 2023-01-09 21:05:30 +08:00
app-mgr Add darwin support for app_framework (#1601) 2022-10-16 21:23:00 +08:00
deps Integrate WASI-NN into WAMR (#1521) 2022-10-12 12:09:29 +08:00
iwasm thread-mgr: Fix spread "wasi proc exit" exception and atomic.wait issues (#1988) 2023-02-24 20:05:39 +08:00
shared Fix getting port issue in posix os_socket_bind (#1981) 2023-02-22 18:59:13 +08:00
config.h Enable aux stack allocations on application heap (#1799) 2022-12-19 10:58:12 +08:00
version.h Upgrade version number to 1.1.2 (#1788) 2022-12-20 14:37:07 +08:00