projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fec956d
)
small fix to DEBUG case in coalesce/freeGroup patch
author
Simon Marlow
<simonmar@microsoft.com>
Tue, 21 Nov 2006 16:34:16 +0000
(16:34 +0000)
committer
Simon Marlow
<simonmar@microsoft.com>
Tue, 21 Nov 2006 16:34:16 +0000
(16:34 +0000)
rts/sm/BlockAlloc.c
patch
|
blob
|
history
diff --git
a/rts/sm/BlockAlloc.c
b/rts/sm/BlockAlloc.c
index
1149260
..
763f2e7
100644
(file)
--- a/
rts/sm/BlockAlloc.c
+++ b/
rts/sm/BlockAlloc.c
@@
-227,9
+227,11
@@
coalesce(bdescr *p)
{
nat i, blocks;
bdescr *bd;
+ blocks = q->blocks;
// not strictly necessary to do this, but helpful if we have a
// random ptr and want to figure out what block it belongs to.
- for (i = 0, bd = q; i < q->blocks; bd++, i++) {
+ // Also required for sanity checking (see checkFreeListSanity()).
+ for (i = 0, bd = q; i < blocks; bd++, i++) {
bd->free = 0;
bd->blocks = 0;
bd->link = p;