From f59e2cececddab7c7004db636704a9a510d84c6b Mon Sep 17 00:00:00 2001 From: simonmar Date: Fri, 24 Oct 2003 09:00:59 +0000 Subject: [PATCH] [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. --- ghc/rts/Weak.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 1.7.10.4