From: simonmar Date: Fri, 24 Oct 2003 09:00:59 +0000 (+0000) Subject: [project @ 2003-10-24 09:00:59 by simonmar] X-Git-Tag: Approx_11550_changesets_converted~331 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=f59e2cececddab7c7004db636704a9a510d84c6b;p=ghc-hetmet.git [project @ 2003-10-24 09:00:59 by simonmar] Set the mut_link of a MUT_ARR_PTRS_FROZEN to NULL. This might be the cause of the stage2 crash; I'll check as soon as the build completes. --- diff --git a/ghc/rts/Weak.c b/ghc/rts/Weak.c index 7201ba1..462cecc 100644 --- a/ghc/rts/Weak.c +++ b/ghc/rts/Weak.c @@ -1,5 +1,5 @@ /* ----------------------------------------------------------------------------- - * $Id: Weak.c,v 1.30 2003/09/21 22:20:56 wolfgang Exp $ + * $Id: Weak.c,v 1.31 2003/10/24 09:00:59 simonmar Exp $ * * (c) The GHC Team, 1998-1999 * @@ -106,6 +106,7 @@ scheduleFinalizers(StgWeak *list) arr = (StgMutArrPtrs *)allocate(sizeofW(StgMutArrPtrs) + n); TICK_ALLOC_PRIM(sizeofW(StgMutArrPtrs), n, 0); SET_HDR(arr, &stg_MUT_ARR_PTRS_FROZEN_info, CCS_SYSTEM); + arr->mut_link = NULL; arr->ptrs = n; n = 0;