@@ -4196,21 +4196,20 @@ wasm_get_module_inst_mem_consumption(const WASMModuleInstance *module_inst,
41964196#endif /* end of (WASM_ENABLE_MEMORY_PROFILING != 0) \
41974197 || (WASM_ENABLE_MEMORY_TRACING != 0) */
41984198
4199-
42004199#if WAMR_ENABLE_COPY_CALLSTACK != 0
42014200uint32
42024201wasm_interp_copy_callstack (WASMExecEnv * exec_env , wasm_frame_ptr_t buffer ,
4203- uint32 length , uint32 skip_n )
4202+ uint32 length , uint32 skip_n )
42044203{
42054204 /*
4206- * Note for devs: please refrain from such modifications inside of
4207- * wasm_interp_copy_callstack
4208- * - any allocations/freeing memory
4209- * - dereferencing any pointers other than: exec_env, exec_env->module_inst,
4210- * exec_env->module_inst->module, pointers between stack's bottom and
4211- * top_boundary For more details check wasm_copy_callstack in
4212- * wasm_export.h
4213- */
4205+ * Note for devs: please refrain from such modifications inside of
4206+ * wasm_interp_copy_callstack
4207+ * - any allocations/freeing memory
4208+ * - dereferencing any pointers other than: exec_env, exec_env->module_inst,
4209+ * exec_env->module_inst->module, pointers between stack's bottom and
4210+ * top_boundary For more details check wasm_copy_callstack in
4211+ * wasm_export.h
4212+ */
42144213 WASMModuleInstance * module_inst =
42154214 (WASMModuleInstance * )wasm_exec_env_get_module_inst (exec_env );
42164215 WASMInterpFrame * cur_frame = wasm_exec_env_get_cur_frame (exec_env );
@@ -4221,8 +4220,8 @@ wasm_interp_copy_callstack(WASMExecEnv *exec_env, wasm_frame_ptr_t buffer,
42214220
42224221 WASMCApiFrame record_frame ;
42234222 while (cur_frame && (uint8_t * )cur_frame >= bottom
4224- && (uint8_t * )cur_frame + sizeof (WASMInterpFrame ) <= top_boundary
4225- && count < (skip_n + length )) {
4223+ && (uint8_t * )cur_frame + sizeof (WASMInterpFrame ) <= top_boundary
4224+ && count < (skip_n + length )) {
42264225 if (!cur_frame -> function ) {
42274226 cur_frame = cur_frame -> prev_frame ;
42284227 continue ;
0 commit comments