Don't check for swept blocks in -DS.
authorMarco Túlio Gontijo e Silva <marcot@marcot.eti.br>
Sun, 18 Jul 2010 22:55:26 +0000 (22:55 +0000)
committerMarco Túlio Gontijo e Silva <marcot@marcot.eti.br>
Sun, 18 Jul 2010 22:55:26 +0000 (22:55 +0000)
commiteff182c31745b958d627d4feb1e53c09298c6836
tree31aa266ea6e532071e2c729c8c42ce9283a67bc3
parent8d1cbbdf6d4e40d116e3c4661ef5a245f23f9511
Don't check for swept blocks in -DS.

The checkHeap function assumed the allocated part of the block contained only
alive objects and slops.  This was not true for blocks that are collected using
mark sweep.  The code in this patch skip the test for this kind of blocks.
includes/rts/storage/Block.h
rts/sm/GC.c
rts/sm/Sanity.c
rts/sm/Sweep.c