wasm-micro-runtime/core/iwasm/interpreter
Wenyong Huang 49d439a3bc
Fix/Simplify the atomic.wait/nofity implementations (#2044)
Use the shared memory's shared_mem_lock to lock the whole atomic.wait and
atomic.notify processes, and use it for os_cond_reltimedwait and os_cond_notify,
so as to make the whole processes actual atomic operations:
the original implementation accesses the wait address with shared_mem_lock
and uses wait_node->wait_lock for os_cond_reltimedwait, which is not an atomic
operation.

And remove the unnecessary wait_map_lock and wait_lock, since the whole
processes are already locked by shared_mem_lock.
2023-03-23 09:21:16 +08:00
..
iwasm_interp.cmake Implement wasm mini loader and refine footprint of loader and runtime (#276) 2020-06-08 11:19:09 +08:00
SConscript add porting codes of rt-thread (#494) 2021-01-14 11:26:35 +08:00
wasm_interp_classic.c Fix/Simplify the atomic.wait/nofity implementations (#2044) 2023-03-23 09:21:16 +08:00
wasm_interp_fast.c Fix/Simplify the atomic.wait/nofity implementations (#2044) 2023-03-23 09:21:16 +08:00
wasm_interp.h Fix issue of restoring wasm operand stack (#1721) 2022-11-18 18:51:13 +08:00
wasm_loader.c Merge branch main into dev/wasi_threads 2023-02-17 08:46:12 +08:00
wasm_loader.h Fix build error when enable custom section without interpreter (#1229) 2022-06-15 18:14:39 +08:00
wasm_mini_loader.c Use shared memory lock for threads generated from same module (#1960) 2023-02-16 11:54:19 +08:00
wasm_opcode.h Fix data races in atomic wait/notify and interp goto table (#1971) 2023-02-22 11:43:49 +08:00
wasm_runtime.c Fix multi-threading issues (#2013) 2023-03-08 10:57:22 +08:00
wasm_runtime.h Add/reorganize locks for thread synchronization (#1995) 2023-03-04 08:15:26 +08:00
wasm.h Use shared memory lock for threads generated from same module (#1960) 2023-02-16 11:54:19 +08:00