mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-10-24 01:41:17 +00:00
Potential recursive lock occurs in:
```
pthread_create_wrapper (acquire exec_env->wait_lock)
=> wasm_cluster_create_thread
=> allocate_aux_stack
=> wasm_runtime_module_malloc_internal
=> wasm_call_function
=> wasm_exec_env_set_thread_info (acquire exec_env->wait_lock again)
```
Allocate aux stack before calling wasm_cluster_create_thread to resolve it.
Reported in https://github.com/bytecodealliance/wasm-micro-runtime/pull/2977.
|
||
|---|---|---|
| .. | ||
| stress-test | ||
| test | ||
| unit-test | ||
| lib_wasi_threads_wrapper.c | ||
| lib_wasi_threads.cmake | ||
| tid_allocator.c | ||
| tid_allocator.h | ||