[profiler] Don't emit sync point on restart the world unless gc moves are enabled.
authorRodrigo Kumpera <kumpera@gmail.com>
Tue, 13 Jun 2017 19:53:31 +0000 (12:53 -0700)
committerRodrigo Kumpera <kumpera@gmail.com>
Tue, 13 Jun 2017 19:53:31 +0000 (12:53 -0700)
mono/profiler/log.c

index 3c8e8a8d8ca7c42a1b5bed44603d4bacc2112074..2167d795db08c33082451b145c2ecb53f54e8f17 100644 (file)
@@ -1515,7 +1515,7 @@ gc_event (MonoProfiler *profiler, MonoGCEvent ev, int generation)
                 * object allocation events for certain addresses could come
                 * after the move events that made those addresses available.
                 */
-               if (ENABLED (PROFLOG_GC_EVENTS | PROFLOG_GC_MOVES_EVENTS))
+               if (ENABLED (PROFLOG_GC_MOVES_EVENTS))
                        sync_point_mark (SYNC_POINT_WORLD_START);
 
                /*