patch applied (ghc): Use the BF_EVACUATED flag to indicate to-space
consistently
Simon Marlow
simonmarhaskell at gmail.com
Tue Jun 17 10:39:10 EDT 2008
Wed Apr 16 16:29:06 PDT 2008 Simon Marlow <simonmarhaskell at gmail.com>
* Use the BF_EVACUATED flag to indicate to-space consistently
BF_EVACUATED is now set on all blocks except those that we are
copying. This means we don't need a separate test for gen>N in
evacuate(), because in generations older than N, BF_EVACUATED will be
set anyway. The disadvantage is that we have to reset the
BF_EVACUATED flag on the blocks of any generation we're collecting
before starting GC. Results in a small speed improvement.
M ./rts/sm/Compact.c -5 +2
M ./rts/sm/Evac.c -1 +1
M ./rts/sm/Evac.c-inc -19 +9
M ./rts/sm/GC.c -9 +6
M ./rts/sm/GCAux.c -3
M ./rts/sm/GCUtils.c -9 +1
View patch online:
http://darcs.haskell.org/ghc/_darcs/patches/20080416232906-8214f-7ac46a9f8579d2e935539b67ed9a747d115e1050.gz
More information about the Cvs-ghc
mailing list