changeset 55667:57f4a242e8f4

(Fgarbage_collect): Do all the marking before flushing unmarked elements of the undo list.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Tue, 18 May 2004 16:22:46 +0000
parents c608b21fae26
children 00a30fe7897a
files src/alloc.c
diffstat 1 files changed, 11 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/src/alloc.c	Tue May 18 13:52:57 2004 +0000
+++ b/src/alloc.c	Tue May 18 16:22:46 2004 +0000
@@ -4465,6 +4465,17 @@
     }
   mark_kboards ();
 
+#if GC_MARK_STACK == GC_USE_GCPROS_CHECK_ZOMBIES
+  mark_stack ();
+#endif
+
+#ifdef USE_GTK
+  {
+    extern void xg_mark_data ();
+    xg_mark_data ();
+  }
+#endif
+
   /* Look thru every buffer's undo list
      for elements that update markers that were not marked,
      and delete them.  */
@@ -4508,17 +4519,6 @@
       }
   }
 
-#if GC_MARK_STACK == GC_USE_GCPROS_CHECK_ZOMBIES
-  mark_stack ();
-#endif
-
-#ifdef USE_GTK
-  {
-    extern void xg_mark_data ();
-    xg_mark_data ();
-  }
-#endif
-
   gc_sweep ();
 
   /* Clear the mark bits that we set in certain root slots.  */