Skip to content

Commit 56bb7e7

Browse files
author
Georgii Rylov
committed
last fixes
1 parent 6166788 commit 56bb7e7

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

core/iwasm/aot/aot_runtime.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4172,14 +4172,14 @@ aot_copy_callstack_standard_frame(WASMExecEnv *exec_env, wasm_frame_t *buffer,
41724172
* top_boundary For more details check wasm_iterate_callstack in
41734173
* wasm_export.h
41744174
*/
4175+
uint32 count = 0;
41754176
#if WASM_ENABLE_GC == 0
41764177
WASMModuleInstance *module_inst =
41774178
(WASMModuleInstance *)wasm_exec_env_get_module_inst(exec_env);
41784179
AOTFrame *cur_frame = (AOTFrame *)wasm_exec_env_get_cur_frame(exec_env);
41794180
uint8 *top_boundary = exec_env->wasm_stack.top_boundary;
41804181
uint8 *bottom = exec_env->wasm_stack.bottom;
41814182
uint32 frame_size = (uint32)offsetof(AOTFrame, lp);
4182-
uint32 count = 0;
41834183

41844184
WASMCApiFrame record_frame;
41854185
while (cur_frame && (uint8_t *)cur_frame >= bottom
@@ -4198,13 +4198,13 @@ aot_copy_callstack_standard_frame(WASMExecEnv *exec_env, wasm_frame_t *buffer,
41984198
cur_frame = cur_frame->prev_frame;
41994199
++count;
42004200
}
4201-
return count;
42024201
#else
42034202
/*
42044203
* TODO: add support for standard frames when GC is enabled
42054204
* now it poses a risk due to variable size of the frame
42064205
*/
42074206
#endif
4207+
return count;
42084208
}
42094209

42104210
uint32

core/iwasm/interpreter/wasm_runtime.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55

66
#include "wasm_runtime.h"
77
#include "wasm.h"
8-
#include "wasm_c_api.h"
9-
#include "wasm_exec_env.h"
108
#include "wasm_loader.h"
119
#include "wasm_interp.h"
1210
#include "bh_common.h"

0 commit comments

Comments
 (0)