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:
5ffe96c
)
[project @ 2005-05-11 12:44:26 by simonmar]
author
simonmar
<unknown>
Wed, 11 May 2005 12:44:26 +0000
(12:44 +0000)
committer
simonmar
<unknown>
Wed, 11 May 2005 12:44:26 +0000
(12:44 +0000)
allocateLocal(): bump the block count on the step, not the global
alloc_blocks count.
ghc/rts/Storage.c
patch
|
blob
|
history
diff --git
a/ghc/rts/Storage.c
b/ghc/rts/Storage.c
index
3d3178b
..
99d36d2
100644
(file)
--- a/
ghc/rts/Storage.c
+++ b/
ghc/rts/Storage.c
@@
-662,7
+662,7
@@
allocateLocal( StgRegTable *reg, nat n )
// full: allocate a fresh block (we can't fail here).
ACQUIRE_SM_LOCK;
bd = allocBlock();
- alloc_blocks++;
+ reg->rNursery->n_blocks++;
RELEASE_SM_LOCK;
bd->gen_no = 0;
bd->step = g0s0;