pub unsafe extern "C" fn wasm_runtime_set_instruction_count_limit(
exec_env: wasm_exec_env_t,
instruction_count: c_int,
)Expand description
Set the instruction count limit to the execution environment. By default the instruction count limit is -1, which means no limit. However, if the instruction count limit is set to a positive value, the execution will be terminated when the instruction count reaches the limit.
@param exec_env the execution environment @param instruction_count the instruction count limit