wasm-micro-runtime/core/iwasm
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
..
aot freertos: Minor changes for freertos libc_wasi build adaption (#2973) 2024-01-04 09:49:24 +08:00
common Allow to set segue flags for wasm-c-api JIT (#2926) 2024-01-02 19:34:18 +08:00
compilation simd-128: The input lanes of integer-to-integer narrowing ops should be interpreted as signed (#2850) 2024-01-03 09:51:58 +08:00
doc Add architecture diagram for wasm globals and classic-interp stack frame (#2058) 2023-03-25 09:39:20 +08:00
fast-jit fast-jit: Fix const shift and const i64 compare issues (#2969) 2024-01-02 17:56:34 +08:00
include Allow to set segue flags for wasm-c-api JIT (#2926) 2024-01-02 19:34:18 +08:00
interpreter Fix fast-interp polymorphic stack processing (#2974) 2024-01-04 10:00:36 +08:00
libraries Fix potential recursive lock in pthread_create_wrapper (#2980) 2024-01-08 09:43:31 +08:00
README.md Add architecture diagram for wasm globals and classic-interp stack frame (#2058) 2023-03-25 09:39:20 +08:00