wasm-micro-runtime/core/iwasm/libraries/thread-mgr
Wenyong Huang c39214e8a5
Fix potential recursive lock in pthread_create_wrapper (#2980)
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.
2024-01-08 09:43:31 +08:00
..
SConscript add porting codes of rt-thread (#494) 2021-01-14 11:26:35 +08:00
thread_manager.c Fix potential recursive lock in pthread_create_wrapper (#2980) 2024-01-08 09:43:31 +08:00
thread_manager.h Fix potential recursive lock in pthread_create_wrapper (#2980) 2024-01-08 09:43:31 +08:00
thread_mgr.cmake Enable shared memory && add pthread support (#282) 2020-06-15 19:04:04 +08:00