[project @ 1999-02-05 14:48:01 by simonm]
authorsimonm <unknown>
Fri, 5 Feb 1999 14:48:01 +0000 (14:48 +0000)
committersimonm <unknown>
Fri, 5 Feb 1999 14:48:01 +0000 (14:48 +0000)
[ repeating commit, message got lost last time ]

- Scavenge each older generation immediately after traversing its
  mutable list.

- Make the first GC a major one: it doesn't cost much, and we get
  to garbage collection 'main' straight away.

- Change the order of scavenging to try to minimise the size of
  the mutable lists.

ghc/rts/Storage.c

index 88f8904..ce745f6 100644 (file)
@@ -1,5 +1,5 @@
 /* -----------------------------------------------------------------------------
- * $Id: Storage.c,v 1.10 1999/02/05 14:45:43 simonm Exp $
+ * $Id: Storage.c,v 1.11 1999/02/05 14:48:01 simonm Exp $
  *
  * Storage manager front end
  *
@@ -71,7 +71,7 @@ initStorage (void)
     gen->mut_once_list = END_MUT_LIST;
     gen->collections = 0;
     gen->failed_promotions = 0;
-    gen->max_blocks = RtsFlags.GcFlags.minOldGenSize;
+    gen->max_blocks = 0;
   }
 
   /* A couple of convenience pointers */