mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-10-19 23:41:08 +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);
|
wasm_runtime_dump_exec_env_mem_consumption(exec_env);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if WASM_INSTRUCTION_METERING != 0
|
||||||
|
exec_env->instructions_to_execute = -1;
|
||||||
|
#endif
|
||||||
|
|
||||||
return exec_env;
|
return exec_env;
|
||||||
|
|
||||||
#ifdef OS_ENABLE_HW_BOUND_CHECK
|
#ifdef OS_ENABLE_HW_BOUND_CHECK
|
||||||
|
|
Loading…
Reference in New Issue
Block a user