mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-05-09 13:16:26 +00:00
Don't terminate other threads when create thread failed (#1955)
This commit is contained in:
parent
3698f2279b
commit
531771eb11
|
@ -484,7 +484,7 @@ fail4:
|
||||||
/* free the allocated aux stack space */
|
/* free the allocated aux stack space */
|
||||||
free_aux_stack(cluster, aux_stack_start);
|
free_aux_stack(cluster, aux_stack_start);
|
||||||
fail3:
|
fail3:
|
||||||
wasm_exec_env_destroy(new_exec_env);
|
wasm_exec_env_destroy_internal(new_exec_env);
|
||||||
fail2:
|
fail2:
|
||||||
wasm_runtime_deinstantiate_internal(new_module_inst, true);
|
wasm_runtime_deinstantiate_internal(new_module_inst, true);
|
||||||
fail1:
|
fail1:
|
||||||
|
@ -605,7 +605,7 @@ fail3:
|
||||||
/* free the allocated aux stack space */
|
/* free the allocated aux stack space */
|
||||||
free_aux_stack(cluster, aux_stack_start);
|
free_aux_stack(cluster, aux_stack_start);
|
||||||
fail2:
|
fail2:
|
||||||
wasm_exec_env_destroy(new_exec_env);
|
wasm_exec_env_destroy_internal(new_exec_env);
|
||||||
fail1:
|
fail1:
|
||||||
os_mutex_unlock(&cluster->lock);
|
os_mutex_unlock(&cluster->lock);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user