X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Frts%2FGC.c;h=3d4e6872b97b27dc94b51f32a59bc0575ba3f936;hb=150d5559c5a42bbff62977262cafeee183aeb0ba;hp=23c835fec0192c78c2e129db5aa0d6a562f82f1e;hpb=25f7169979a66f0ea58aa01477e019988d895be9;p=ghc-hetmet.git diff --git a/ghc/rts/GC.c b/ghc/rts/GC.c index 23c835f..3d4e687 100644 --- a/ghc/rts/GC.c +++ b/ghc/rts/GC.c @@ -1,5 +1,5 @@ /* ----------------------------------------------------------------------------- - * $Id: GC.c,v 1.120 2001/08/14 13:40:09 sewardj Exp $ + * $Id: GC.c,v 1.121 2001/08/17 15:46:54 simonmar Exp $ * * (c) The GHC Team 1998-1999 * @@ -848,8 +848,9 @@ GarbageCollect ( void (*get_roots)(evac_fn), rtsBool force_major_gc ) */ blocks = g0s0->n_to_blocks; - if ( blocks * RtsFlags.GcFlags.oldGenFactor * 2 > - RtsFlags.GcFlags.maxHeapSize ) { + if ( RtsFlags.GcFlags.maxHeapSize != 0 && + blocks * RtsFlags.GcFlags.oldGenFactor * 2 > + RtsFlags.GcFlags.maxHeapSize ) { long adjusted_blocks; // signed on purpose int pc_free;