Commit Graph
2 Commits
Author SHA1 Message Date
Georgii RylovandGitHub 23e9a356e5 Enable to run wasi-thread tests with AOT (#2026) 2023-03-16 08:22:03 +08:00
Georgii RylovandGitHub 2de24587a8 Fix wait_info data race for deletion and fix atomic_wait logic (#2016)
Fix a data race for test main_proc_exit_wait.c from #1963.
And fix atomic_wait logic that was wrong before:
- a thread 1 started executing wasm instruction wasm_atomic_wait
  but hasn't reached waiting on condition variable
- a main thread calls proc_exit and notifies all the threads that reached
  waiting on condition variable
Which leads to thread 1 hang on waiting on condition variable after that

Now it's atomically checked whether proc_exit was already called.
2023-03-13 10:19:17 +08:00