X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=rts%2Fsm%2FGC.c;h=270784e45703a463304d1f83867f086e540817f4;hb=5f8b35ad729740cab1cb8c884deb405dcc758683;hp=7a82a6e3f9bab13b3ce7e3a2dd24d41112c41b38;hpb=64c17c4561cf419a4c70511bafc0815ea670bb2e;p=ghc-hetmet.git diff --git a/rts/sm/GC.c b/rts/sm/GC.c index 7a82a6e..270784e 100644 --- a/rts/sm/GC.c +++ b/rts/sm/GC.c @@ -17,8 +17,6 @@ #include "RtsUtils.h" #include "Apply.h" #include "OSThreads.h" -#include "Storage.h" -#include "Stable.h" #include "LdvProfile.h" #include "Updates.h" #include "Stats.h" @@ -484,10 +482,6 @@ GarbageCollect ( rtsBool force_major_gc ) */ markStablePtrTable(mark_root); - /* Mark the root pointer table. - */ - markRootPtrTable(mark_root); - /* ------------------------------------------------------------------------- * Repeatedly scavenge all the areas we know about until there's no * more scavenging to be done. @@ -655,7 +649,7 @@ GarbageCollect ( rtsBool force_major_gc ) if (g <= N) { copied -= stp->hp_bd->start + BLOCK_SIZE_W - stp->hp_bd->free; - scavd_copied -= (P_)(BLOCK_ROUND_UP(stp->scavd_hp)) - stp->scavd_hp; + scavd_copied -= stp->scavd_hpLim - stp->scavd_hp; } }