From: simonm Date: Fri, 5 Feb 1999 14:48:01 +0000 (+0000) Subject: [project @ 1999-02-05 14:48:01 by simonm] X-Git-Tag: Approximately_9120_patches~6594 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=3e8ab4c02d81252a1ed5deab19426270d85a9905;p=ghc-hetmet.git [project @ 1999-02-05 14:48:01 by simonm] [ 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. --- diff --git a/ghc/rts/Storage.c b/ghc/rts/Storage.c index 88f8904..ce745f6 100644 --- a/ghc/rts/Storage.c +++ b/ghc/rts/Storage.c @@ -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 */