Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
This memset is expensive on wasm and mostly unnecessary
  • Loading branch information
kg committed May 9, 2024
commit c39aba9e582a0811cad3f3936dc33975d4df826f
5 changes: 4 additions & 1 deletion src/mono/mono/mini/interp/interp.c
Original file line number Diff line number Diff line change
Expand Up @@ -2824,10 +2824,13 @@ do_jit_call (ThreadContext *context, stackval *ret_sp, stackval *sp, InterpFrame
}

JitCallCbData cb_data;
memset (&cb_data, 0, sizeof (cb_data));
cb_data.pindex = pindex;
cb_data.args = args;
cb_data.ftndesc.interp_method = NULL;
cb_data.ftndesc.method = NULL;
if (cinfo->no_wrapper) {
cb_data.ftndesc.addr = NULL;
cb_data.ftndesc.arg = NULL;
cb_data.jit_wrapper = cinfo->addr;
cb_data.extra_arg = cinfo->extra_arg;
} else {
Expand Down