Fix issue of Multi-tier JIT (#2056)

This commit is contained in:
Wenyong Huang
2023-03-25 11:15:05 +08:00
committed by GitHub
parent b0f614d77a
commit 605c8b07dc
4 changed files with 22 additions and 5 deletions

View File

@ -1489,7 +1489,7 @@ set_running_mode(WASMModuleInstance *module_inst, RunningMode running_mode,
os_mutex_lock(&module->tierup_wait_lock);
while (!module->llvm_jit_inited) {
os_cond_reltimedwait(&module->tierup_wait_cond,
&module->tierup_wait_lock, 10);
&module->tierup_wait_lock, 10000);
if (module->orcjit_stop_compiling) {
/* init_llvm_jit_functions_stage2 failed */
os_mutex_unlock(&module->tierup_wait_lock);