[sgen] Don't report GC moves with the world running and before a GC happened - it...
authorRodrigo Kumpera <kumpera@gmail.com>
Tue, 13 Jun 2017 23:39:14 +0000 (16:39 -0700)
committerRodrigo Kumpera <kumpera@gmail.com>
Wed, 14 Jun 2017 21:54:15 +0000 (14:54 -0700)
mono/metadata/sgen-stw.c

index 96fec4d39ab364be201e6096cb67f7518ff0c89e..3bd1b3322866e140f65b45ba38b9e5a4a2b11b1b 100644 (file)
@@ -104,11 +104,6 @@ sgen_client_stop_world (int generation)
 {
        TV_DECLARE (end_handshake);
 
-       /* notify the profiler of the leftovers */
-       /* FIXME this is the wrong spot at we can STW for non collection reasons. */
-       if (G_UNLIKELY (mono_profiler_events & MONO_PROFILE_GC_MOVES))
-               mono_sgen_gc_event_moves ();
-
        mono_profiler_gc_event (MONO_GC_EVENT_PRE_STOP_WORLD, generation);
 
        acquire_gc_locks ();