Commit d7dedcdb authored by simonmar's avatar simonmar
Browse files

[project @ 2001-11-08 12:41:07 by simonmar]

(addendum to the previous commit) also set bd->blocks to zero in
coalesce().
parent 18b3cd97
/* ----------------------------------------------------------------------------- /* -----------------------------------------------------------------------------
* $Id: BlockAlloc.c,v 1.11 2001/11/08 10:18:49 simonmar Exp $ * $Id: BlockAlloc.c,v 1.12 2001/11/08 12:41:07 simonmar Exp $
* *
* (c) The GHC Team 1998-2000 * (c) The GHC Team 1998-2000
* *
...@@ -205,6 +205,7 @@ coalesce(bdescr *p) ...@@ -205,6 +205,7 @@ coalesce(bdescr *p)
p->link = q->link; p->link = q->link;
for (i = 0, bd = q; i < q->blocks; bd++, i++) { for (i = 0, bd = q; i < q->blocks; bd++, i++) {
bd->free = 0; bd->free = 0;
bd->blocks = 0;
bd->link = p; bd->link = p;
} }
return p; return p;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment