mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-05-25 02:51:11 +00:00
feat: initialize instruction execution limit in exec_env
This commit is contained in:
parent
799cad659c
commit
0dd7fe2070
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user