mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-03-12 08:55:28 +00:00
last fixes
This commit is contained in:
parent
6166788c33
commit
56bb7e715b
|
@ -4172,6 +4172,7 @@ aot_copy_callstack_standard_frame(WASMExecEnv *exec_env, wasm_frame_t *buffer,
|
|||
* top_boundary For more details check wasm_iterate_callstack in
|
||||
* wasm_export.h
|
||||
*/
|
||||
uint32 count = 0;
|
||||
#if WASM_ENABLE_GC == 0
|
||||
WASMModuleInstance *module_inst =
|
||||
(WASMModuleInstance *)wasm_exec_env_get_module_inst(exec_env);
|
||||
|
@ -4179,7 +4180,6 @@ aot_copy_callstack_standard_frame(WASMExecEnv *exec_env, wasm_frame_t *buffer,
|
|||
uint8 *top_boundary = exec_env->wasm_stack.top_boundary;
|
||||
uint8 *bottom = exec_env->wasm_stack.bottom;
|
||||
uint32 frame_size = (uint32)offsetof(AOTFrame, lp);
|
||||
uint32 count = 0;
|
||||
|
||||
WASMCApiFrame record_frame;
|
||||
while (cur_frame && (uint8_t *)cur_frame >= bottom
|
||||
|
@ -4198,13 +4198,13 @@ aot_copy_callstack_standard_frame(WASMExecEnv *exec_env, wasm_frame_t *buffer,
|
|||
cur_frame = cur_frame->prev_frame;
|
||||
++count;
|
||||
}
|
||||
return count;
|
||||
#else
|
||||
/*
|
||||
* TODO: add support for standard frames when GC is enabled
|
||||
* now it poses a risk due to variable size of the frame
|
||||
*/
|
||||
#endif
|
||||
return count;
|
||||
}
|
||||
|
||||
uint32
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
|
||||
#include "wasm_runtime.h"
|
||||
#include "wasm.h"
|
||||
#include "wasm_c_api.h"
|
||||
#include "wasm_exec_env.h"
|
||||
#include "wasm_loader.h"
|
||||
#include "wasm_interp.h"
|
||||
#include "bh_common.h"
|
||||
|
|
Loading…
Reference in New Issue
Block a user