From e4ceb6b42957c37faf0eb2d846efde92665a5c7b Mon Sep 17 00:00:00 2001 From: Alix ANNERAUD Date: Sun, 2 Mar 2025 22:42:58 +0100 Subject: [PATCH] fix: move instructions_to_execute field in WASMExecEnv (overwriten before) --- core/iwasm/common/wasm_exec_env.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/core/iwasm/common/wasm_exec_env.h b/core/iwasm/common/wasm_exec_env.h index ba157ac48..d75e216a0 100644 --- a/core/iwasm/common/wasm_exec_env.h +++ b/core/iwasm/common/wasm_exec_env.h @@ -87,6 +87,11 @@ typedef struct WASMExecEnv { uint8 *bottom; } wasm_stack; +#if WASM_INSTRUCTION_METERING != 0 + /* instructions to execute */ + int instructions_to_execute; +#endif + #if WASM_ENABLE_FAST_JIT != 0 /** * Cache for @@ -166,11 +171,6 @@ typedef struct WASMExecEnv { /* The WASM stack. */ uint8 bottom[1]; } wasm_stack_u; - -#if WASM_INSTRUCTION_METERING != 0 - /* instructions to execute */ - int instructions_to_execute; -#endif } WASMExecEnv; #if WASM_ENABLE_MEMORY_PROFILING != 0