Implement dead object poisoning in unevacuated regions.

When an unevacuated region is cleared from the from-space,
replace memory areas used by dead objects with a poison
value, so as to catch dangling references to such objects
earlier.

This poisoning mechanism is only turned on in debug mode.

Test: art/test.py
Test: Device boot test with libartd
Bug: 74064045
Change-Id: I2f89a31648d292baae09859494410f88eca21759
2 files changed