wasm-micro-runtime/core/iwasm/libraries/lib-wasi-threads
YAMAMOTO Takashi 91592429f4
Fix memory sharing (#2415)
- Inherit shared memory from the parent instance, instead of
  trying to look it up by the underlying module. The old method
  works correctly only when every cluster uses different module.
- Use reference count in WASMMemoryInstance/AOTMemoryInstance
  to mark whether the memory is shared or not
- Retire WASMSharedMemNode
- For atomic opcode implementations in the interpreters, use
  a global lock for now
- Update the internal API users
  (wasi-threads, lib-pthread, wasm_runtime_spawn_thread)

Fixes https://github.com/bytecodealliance/wasm-micro-runtime/issues/1962
2023-08-04 10:18:13 +08:00
..
test Add initial stress test (#2364) 2023-08-01 17:38:37 +08:00
lib_wasi_threads_wrapper.c Fix memory sharing (#2415) 2023-08-04 10:18:13 +08:00
lib_wasi_threads.cmake Reserve TID values for WASI threads (#1862) 2023-01-06 10:28:25 +08:00
tid_allocator.c Reserve TID values for WASI threads (#1862) 2023-01-06 10:28:25 +08:00
tid_allocator.h Reserve TID values for WASI threads (#1862) 2023-01-06 10:28:25 +08:00