projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
93eab3e
)
[project @ 2001-08-08 13:45:02 by simonmar]
author
simonmar
<unknown>
Wed, 8 Aug 2001 13:45:02 +0000
(13:45 +0000)
committer
simonmar
<unknown>
Wed, 8 Aug 2001 13:45:02 +0000
(13:45 +0000)
wibble
ghc/rts/GC.c
patch
|
blob
|
history
diff --git
a/ghc/rts/GC.c
b/ghc/rts/GC.c
index
98c982f
..
66d7d86
100644
(file)
--- 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
*
*
* (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 &&
// 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;
oldest_gen->steps[0].n_blocks >
(RtsFlags.GcFlags.compactThreshold * max) / 100) {
oldest_gen->steps[0].is_compacted = 1;