wasm-micro-runtime/core/iwasm
Enrico Loparco 63273a1673
Fix issues in the libc-wasi poll_oneoff when thread-mgr is enabled (#1980)
Fix issues in the libc-wasi `poll_oneoff` when thread manager is enabled:
-  The exception of a thread may be cleared when other thread runs into
   `proc_exit` and then calls `clear_wasi_proc_exit_exception`, so should not
   use `wasm_runtime_get_exception` to check whether an exception was
    thrown, use `wasm_cluster_is_thread_terminated` instead
- We divided one time poll_oneoff into many times poll_oneoff to check
   the exception to avoid long time waiting in previous PR, but if all events
   returned by one time poll are all waiting events, we need to continue to
   wait but not return directly.

Follow-up on #1951. Tested with multiple timeout values, with and without
interruption and measured the time spent sleeping.
2023-02-23 16:11:33 +08:00
..
aot Re-org calling post instantiation functions (#1972) 2023-02-22 12:24:11 +08:00
common Fix data races in atomic wait/notify and interp goto table (#1971) 2023-02-22 11:43:49 +08:00
compilation Make memory profiling show native stack usage (#1917) 2023-02-01 11:52:15 +08:00
fast-jit Fix issues reported by Coverity static analysis (#1974) 2023-02-22 11:10:21 +08:00
include Expose wasm_runtime_call_indirect (#1969) 2023-02-20 18:56:55 +08:00
interpreter Re-org calling post instantiation functions (#1972) 2023-02-22 12:24:11 +08:00
libraries Fix issues in the libc-wasi poll_oneoff when thread-mgr is enabled (#1980) 2023-02-23 16:11:33 +08:00
README.md Enable AoT and wamr-sdk, and change arguments of call wasm API (#157) 2020-01-21 13:26:14 +08:00