lag/drag/void profiling fix
authorSimon Marlow <simonmar@microsoft.com>
Thu, 23 Feb 2006 15:50:46 +0000 (15:50 +0000)
committerSimon Marlow <simonmar@microsoft.com>
Thu, 23 Feb 2006 15:50:46 +0000 (15:50 +0000)
We were searching the wrong part of the heap for dead objects, this
was broken by recent changes to the step structure: from-space is now
in step->old_blocks, not step->blocks.  Fortunately some assertions in
ProfHeap picked up the problem.

ghc/rts/LdvProfile.c

index 18daf5a..19ebe42 100644 (file)
@@ -320,7 +320,7 @@ LdvCensusForDead( nat N )
                    processNurseryForDead();
                    processChainForDead(generations[g].steps[s].large_objects);
                } else{
-                   processHeapForDead(generations[g].steps[s].blocks);
+                   processHeapForDead(generations[g].steps[s].old_blocks);
                    processChainForDead(generations[g].steps[s].large_objects);
                }
            }