From: simonmar Date: Tue, 23 Sep 2003 15:31:02 +0000 (+0000) Subject: [project @ 2003-09-23 15:31:02 by simonmar] X-Git-Tag: Approx_11550_changesets_converted~423 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=69373e1efb0acf58d793c2fd8d3416decbd1a571;p=ghc-hetmet.git [project @ 2003-09-23 15:31:02 by simonmar] Fix for clearing the evacuated flag on a block: don't throw away other flag settings in the process. --- diff --git a/ghc/rts/GC.c b/ghc/rts/GC.c index f3a1610..f127808 100644 --- a/ghc/rts/GC.c +++ b/ghc/rts/GC.c @@ -1,5 +1,5 @@ /* ----------------------------------------------------------------------------- - * $Id: GC.c,v 1.159 2003/08/26 12:12:49 simonmar Exp $ + * $Id: GC.c,v 1.160 2003/09/23 15:31:02 simonmar Exp $ * * (c) The GHC Team 1998-2003 * @@ -422,7 +422,7 @@ GarbageCollect ( void (*get_roots)(evac_fn), rtsBool force_major_gc ) // mark the large objects as not evacuated yet for (bd = stp->large_objects; bd; bd = bd->link) { - bd->flags = BF_LARGE; + bd->flags &= ~BF_EVACUATED; } // for a compacted step, we need to allocate the bitmap