Grab cluster->lock when modifying exec_env->module_inst (#2685)
Fixes: https://github.com/bytecodealliance/wasm-micro-runtime/issues/2680 And when switching back to the original module_inst, propagate exception if any. cf. https://github.com/bytecodealliance/wasm-micro-runtime/issues/2512
This commit is contained in:
@ -291,6 +291,10 @@ void
|
||||
wasm_exec_env_set_module_inst(
|
||||
WASMExecEnv *exec_env, struct WASMModuleInstanceCommon *const module_inst);
|
||||
|
||||
void
|
||||
wasm_exec_env_restore_module_inst(
|
||||
WASMExecEnv *exec_env, struct WASMModuleInstanceCommon *const module_inst);
|
||||
|
||||
void
|
||||
wasm_exec_env_set_thread_info(WASMExecEnv *exec_env);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user