summaryrefslogtreecommitdiff
path: root/ghc/rts
diff options
context:
space:
mode:
authorsimonmar <unknown>2001-08-08 13:45:02 +0000
committersimonmar <unknown>2001-08-08 13:45:02 +0000
commitdfebb20f1498cd7b3fdcd18c53eaaa67d80c9f05 (patch)
treec972aefa4b5b0fd7fb369c9e0a07d0f894a69e3e /ghc/rts
parent93eab3e91d6f86a5b7519b3a8e01ddc64cfadbec (diff)
downloadhaskell-dfebb20f1498cd7b3fdcd18c53eaaa67d80c9f05.tar.gz
[project @ 2001-08-08 13:45:02 by simonmar]
wibble
Diffstat (limited to 'ghc/rts')
-rw-r--r--ghc/rts/GC.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ghc/rts/GC.c b/ghc/rts/GC.c
index 98c982fe64..66d7d86ddc 100644
--- a/ghc/rts/GC.c
+++ b/ghc/rts/GC.c
@@ -1,5 +1,5 @@
/* -----------------------------------------------------------------------------
- * $Id: GC.c,v 1.116 2001/08/08 10:50:37 simonmar Exp $
+ * $Id: GC.c,v 1.117 2001/08/08 13:45:02 simonmar Exp $
*
* (c) The GHC Team 1998-1999
*
@@ -769,6 +769,7 @@ GarbageCollect ( void (*get_roots)(evac_fn), rtsBool force_major_gc )
// Auto-enable compaction when the residency reaches a
// certain percentage of the maximum heap size (default: 30%).
if (RtsFlags.GcFlags.compact &&
+ max > 0 &&
oldest_gen->steps[0].n_blocks >
(RtsFlags.GcFlags.compactThreshold * max) / 100) {
oldest_gen->steps[0].is_compacted = 1;