Merge pull request #3066 from alexanderkyte/pedump_sgen
[mono.git] / libgc / pthread_stop_world.c
index c5016416ad16e79ca137702db8e7ce4bc1e8528d..3bfdfbf35eddc525cb5667d1e6a258babf555ea5 100644 (file)
@@ -611,6 +611,7 @@ void GC_stop_world()
 {
     if (GC_notify_event)
         GC_notify_event (GC_EVENT_PRE_STOP_WORLD);
+       GC_process_togglerefs ();
     /* Make sure all free list construction has stopped before we start. */
     /* No new construction can start, since free list construction is  */
     /* required to acquire and release the GC lock before it starts,   */