Use the BF_EVACUATED flag to indicate to-space consistently
authorSimon Marlow <simonmarhaskell@gmail.com>
Wed, 16 Apr 2008 23:29:06 +0000 (23:29 +0000)
committerSimon Marlow <simonmarhaskell@gmail.com>
Wed, 16 Apr 2008 23:29:06 +0000 (23:29 +0000)
commit77798610bc585a1eea3b6695c4a3fee1ccba70ba
tree5da6464cf5240e644647e8f6065762177e4fcd35
parent49780c2e25cfbe821d585c5a31cb95aa49f41f14
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.
rts/sm/Compact.c
rts/sm/Evac.c
rts/sm/Evac.c-inc
rts/sm/GC.c
rts/sm/GCAux.c
rts/sm/GCUtils.c