OSDN Git Service

Fix heap corruption and verification.
authorMathieu Chartier <mathieuc@google.com>
Mon, 18 Aug 2014 22:02:59 +0000 (15:02 -0700)
committerMathieu Chartier <mathieuc@google.com>
Mon, 18 Aug 2014 23:23:17 +0000 (16:23 -0700)
commit6724d8649ab73e4fb86c8014bda51b13bddf2f3f
tree75c2ed2b4eb7ba590a2d2771d86de1711e0af76d
parentdfa7a6c8711623bf20aad58f57ae980b497ef4d7
Fix heap corruption and verification.

There was a faulty assumption that space End() was always aligned to
card boundaries. This was true for all spaces other than the image
and resulted in heap corruption when the last object of the image
space contained a reference to an object in another space.

Also fixed an error where we called the pre GC verification post GC.

Bug: 17080623

Change-Id: I041ee564518f53b79c6e8dc2ad782a3152577a4e
runtime/gc/accounting/card_table-inl.h
runtime/gc/heap.cc