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:
3c58884
)
rollback "accounting wibble: we were missing an alloc_blocks .. "
author
Simon Marlow
<simonmar@microsoft.com>
Thu, 18 Oct 2007 09:44:15 +0000
(09:44 +0000)
committer
Simon Marlow
<simonmar@microsoft.com>
Thu, 18 Oct 2007 09:44:15 +0000
(09:44 +0000)
I misread the code, now added a comment to explain why it isn't necessary
rts/sm/Storage.c
patch
|
blob
|
history
diff --git
a/rts/sm/Storage.c
b/rts/sm/Storage.c
index
eb29b2d
..
34284e5
100644
(file)
--- a/
rts/sm/Storage.c
+++ b/
rts/sm/Storage.c
@@
-663,7
+663,9
@@
allocateLocal (Capability *cap, nat n)
bd->gen_no = 0;
bd->step = cap->r.rNursery;
bd->flags = 0;
- alloc_blocks++;
+ // NO: alloc_blocks++;
+ // calcAllocated() uses the size of the nursery, and we've
+ // already bumpted nursery->n_blocks above.
} else {
// we have a block in the nursery: take it and put
// it at the *front* of the nursery list, and use it