Open
Description
wasi-libc uses memory.atomic.wait32
in __wasilibc_futex_wait
, which is called by several functions in wasi-libc including malloc
, fwrite
, and etc.
However, the use of memory.atomic.wait32
on the Web browser main thread (and also Audio Worklet) is prohibited. We need to do something Emscripten is doing in wasi-libc side.
https://github.com/emscripten-core/emscripten/blob/058a9fff/system/lib/pthread/emscripten_futex_wait.c#L111-L150
- Enable pthread-related tests: test: enable pthread-related libc-tests WebAssembly/wasi-libc#560
- Add a new harness for browser testing: test: add browser test harness WebAssembly/wasi-libc#563
- busywait-based futex: Opt-in busywait mode for futexes WebAssembly/wasi-libc#562
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
In review