projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
83f0769
)
[project @ 2006-01-12 13:49:24 by simonmar]
author
simonmar
<unknown>
Thu, 12 Jan 2006 13:49:24 +0000
(13:49 +0000)
committer
simonmar
<unknown>
Thu, 12 Jan 2006 13:49:24 +0000
(13:49 +0000)
fix calculation of copied bytes, we had a words/bytes mismatch when
adding the size of the mutable list
ghc/rts/GC.c
patch
|
blob
|
history
diff --git
a/ghc/rts/GC.c
b/ghc/rts/GC.c
index
1641e3a
..
c7f9a79
100644
(file)
--- a/
ghc/rts/GC.c
+++ b/
ghc/rts/GC.c
@@
-793,7
+793,7
@@
GarbageCollect ( void (*get_roots)(evac_fn), rtsBool force_major_gc )
// stats. Every mutable list is copied during every GC.
if (g > 0) {
for (bd = generations[g].mut_list; bd != NULL; bd = bd->link) {
- copied += (bd->free - bd->start) * sizeof(StgWord);
+ copied += bd->free - bd->start;
}
}