OSDN Git Service

Check pending exception result in AllocObjectWithAllocator.
authorMathieu Chartier <mathieuc@google.com>
Thu, 21 Aug 2014 01:19:23 +0000 (18:19 -0700)
committerMathieu Chartier <mathieuc@google.com>
Thu, 21 Aug 2014 16:44:15 +0000 (09:44 -0700)
commit8e70519190e8a90d427ab0538cf4e8ef30c8b8a2
tree7d4e20a7bf1a7d2b0d197fabba07ce4cff9d87b6
parentdffe276a4e85c516e65119dc62433d35e950ff0f
Check pending exception result in AllocObjectWithAllocator.

Possible previous bug:
Allocation fails due to OOM and the collector transitions.
This caused us to incorrectly retry the allocation with a pending
exception. We now return null if there is a pending exception.

Bug: 17164348

(cherry picked from commit 27f5ae830c5418fa92094608a6e9f693ea88bb69)

Change-Id: I8e7ecafbade7f0b955812df3dd7c94fdc696c856
runtime/gc/heap-inl.h