From: simonmar Date: Wed, 26 Apr 2000 11:54:28 +0000 (+0000) Subject: [project @ 2000-04-26 11:54:28 by simonmar] X-Git-Tag: Approximately_9120_patches~4603 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=15dd0e90b26fd8193e93f496b5995a5145a08484;p=ghc-hetmet.git [project @ 2000-04-26 11:54:28 by simonmar] restore the two-space sanity checking code. --- diff --git a/ghc/rts/Storage.c b/ghc/rts/Storage.c index 39a6a5f..b723f21 100644 --- a/ghc/rts/Storage.c +++ b/ghc/rts/Storage.c @@ -1,5 +1,5 @@ /* ----------------------------------------------------------------------------- - * $Id: Storage.c,v 1.24 2000/04/14 15:18:07 sewardj Exp $ + * $Id: Storage.c,v 1.25 2000/04/26 11:54:28 simonmar Exp $ * * (c) The GHC Team, 1998-1999 * @@ -439,6 +439,7 @@ allocate(nat n) * (eg. running threads), so garbage collecting early won't make * much difference. */ + alloc_blocks += req_blocks; RELEASE_LOCK(&sm_mutex); return bd->start; @@ -712,8 +713,8 @@ extern void checkSanity(nat N) { nat g, s; -fprintf(stderr, "--- checkSanity %d\n", N ); - if (0&&RtsFlags.GcFlags.generations == 1) { + + if (RtsFlags.GcFlags.generations == 1) { checkHeap(g0s0->to_space, NULL); checkChain(g0s0->large_objects); } else {