summaryrefslogtreecommitdiff
path: root/ghc
diff options
context:
space:
mode:
authorsimonmar <unknown>2001-11-08 10:18:49 +0000
committersimonmar <unknown>2001-11-08 10:18:49 +0000
commit18b3cd979a185d02c88df1de61814ed808c62010 (patch)
treef7f3352aa43bac823735826e248ef9da8bc38f07 /ghc
parent547643e7eee71268467246eac3eb84934fc4ec36 (diff)
downloadhaskell-18b3cd979a185d02c88df1de61814ed808c62010.tar.gz
[project @ 2001-11-08 10:18:49 by simonmar]
For each non-head block in a block group, set its 'blocks' field to zero (as per comments elsewhere).
Diffstat (limited to 'ghc')
-rw-r--r--ghc/rts/BlockAlloc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ghc/rts/BlockAlloc.c b/ghc/rts/BlockAlloc.c
index 65205f8ff6..220928520e 100644
--- a/ghc/rts/BlockAlloc.c
+++ b/ghc/rts/BlockAlloc.c
@@ -1,5 +1,5 @@
/* -----------------------------------------------------------------------------
- * $Id: BlockAlloc.c,v 1.10 2001/08/14 13:40:09 sewardj Exp $
+ * $Id: BlockAlloc.c,v 1.11 2001/11/08 10:18:49 simonmar Exp $
*
* (c) The GHC Team 1998-2000
*
@@ -53,6 +53,7 @@ initGroup(nat n, bdescr *head)
head->free = head->start;
for (i=1, bd = head+1; i < n; i++, bd++) {
bd->free = 0;
+ bd->blocks = 0;
bd->link = head;
}
}