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:
c84e392
)
[project @ 2005-04-28 15:44:16 by simonmar]
author
simonmar
<unknown>
Thu, 28 Apr 2005 15:44:16 +0000
(15:44 +0000)
committer
simonmar
<unknown>
Thu, 28 Apr 2005 15:44:16 +0000
(15:44 +0000)
calcAllocated: fix small mis-calculation in the SMP case
ghc/rts/Storage.c
patch
|
blob
|
history
diff --git
a/ghc/rts/Storage.c
b/ghc/rts/Storage.c
index
84232e7
..
f466a58
100644
(file)
--- a/
ghc/rts/Storage.c
+++ b/
ghc/rts/Storage.c
@@
-747,7
+747,7
@@
calcAllocated( void )
#ifdef SMP
for (i = 0; i < n_nurseries; i++) {
Capability *cap;
- for ( bd = capabilities[i].r.rCurrentNursery;
+ for ( bd = capabilities[i].r.rCurrentNursery->link;
bd != NULL; bd = bd->link ) {
allocated -= BLOCK_SIZE_W;
}