OSDN Git Service

Add reserve area to allocation stacks.
authorMathieu Chartier <mathieuc@google.com>
Fri, 23 May 2014 17:54:50 +0000 (10:54 -0700)
committerMathieu Chartier <mathieuc@google.com>
Fri, 23 May 2014 18:15:20 +0000 (11:15 -0700)
commitc179016fe188bef09487e777aa0fd861f5cdf067
treef7ab8bae6c7d99738c2a79882c555c7b08320c61
parentdfd301f19800a4f168283cf2d0b15b2c09071955
Add reserve area to allocation stacks.

This fixes an issue with heap verification which was caused when
the allocation stack overflowed. This resulted in heap verification
failures since we were storing the newly allocated object in a
handle scope without having it be live either in the live bitmap
or allocation stack. We now push the object in the reserve area
before we do a GC due to allocation stack overflow.

Change-Id: I83b42c4b3250d7eaab1b49e53066e21c8656a740
runtime/gc/accounting/atomic_stack.h
runtime/gc/heap-inl.h
runtime/gc/heap.cc
runtime/gc/heap.h