small rearrangement
authorsimonmar@microsoft.com <unknown>
Tue, 15 Jan 2008 09:57:36 +0000 (09:57 +0000)
committersimonmar@microsoft.com <unknown>
Tue, 15 Jan 2008 09:57:36 +0000 (09:57 +0000)
rts/sm/GC.c

index 6510e77..fe26cf9 100644 (file)
@@ -207,12 +207,12 @@ GarbageCollect ( rtsBool force_major_gc )
   }
 #endif
 
-  // tell the STM to discard any cached closures it's hoping to re-use
-  stmPreGCHook();
-
   // tell the stats department that we've started a GC 
   stat_startGC();
 
+  // tell the STM to discard any cached closures it's hoping to re-use
+  stmPreGCHook();
+
 #ifdef DEBUG
   // check for memory leaks if DEBUG is on 
   memInventory();