fix: move instructions_to_execute field in WASMExecEnv (overwriten before)

This commit is contained in:
Alix ANNERAUD 2025-03-02 22:42:58 +01:00
parent 76392b546b
commit e4ceb6b429

View File

@ -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