Skip to content

Commit 9d7b50c

Browse files
committed
Remove 'extra' profiler call to jit_done.
This change was introduced in an attempt to fix multithreaded debugging. However, it raises multiple jit_done events for methods. This breaks the profiler in Unity which assumes matching jit_begin/jit_end events. Upstream is looking to revert and fix this here: mono#20970
1 parent c2a9637 commit 9d7b50c

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

mono/mini/mini-runtime.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2607,7 +2607,6 @@ mono_jit_compile_method_with_opt (MonoMethod *method, guint32 opt, gboolean jit_
26072607
g_assert (vtable);
26082608
if (!mono_runtime_class_init_full (vtable, error))
26092609
return NULL;
2610-
MONO_PROFILER_RAISE (jit_done, (method, info));
26112610

26122611
code = MINI_ADDR_TO_FTNPTR (info->code_start);
26132612
return mono_create_ftnptr (target_domain, code);

0 commit comments

Comments
 (0)