Commit 7b414bae authored by simonmar's avatar simonmar
Browse files

[project @ 2006-01-12 13:49:24 by simonmar]

fix calculation of copied bytes, we had a words/bytes mismatch when
adding the size of the mutable list
parent 83f0769a
......@@ -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;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment