feat: initialize instruction execution limit in exec_env

This commit is contained in:
Alix ANNERAUD 2025-03-02 20:11:30 +01:00
parent 799cad659c
commit 0dd7fe2070

View File

@ -85,6 +85,10 @@ wasm_exec_env_create_internal(struct WASMModuleInstanceCommon *module_inst,
wasm_runtime_dump_exec_env_mem_consumption(exec_env);
#endif
#if WASM_INSTRUCTION_METERING != 0
exec_env->instructions_to_execute = -1;
#endif
return exec_env;
#ifdef OS_ENABLE_HW_BOUND_CHECK