OSDN Git Service

Fix infinite loop when calling SetStatus after OOM.
authorMathieu Chartier <mathieuc@google.com>
Mon, 14 Jul 2014 17:16:05 +0000 (10:16 -0700)
committerMathieu Chartier <mathieuc@google.com>
Mon, 14 Jul 2014 17:58:09 +0000 (10:58 -0700)
commitfd22d5bada15d95b5ea8ab5a4dda39077e1a54ee
tree3dc5aaa74f1272c357d339c3c61d7e1ed0aececf
parente8b8086388159be5fecb23ae6185e70f3dfb5da6
Fix infinite loop when calling SetStatus after OOM.

There was a problem where we would call SetStatus when we had an OOM
error. This results in attempting to find the ExceptionInInitializer
class which if not loaded does more allocations resulting in an
infinite loop.

Also some cleanup addressing other comments.

Bug: 16082350
Change-Id: I5c1e638a03ddf700ab4e9cad9a3077d2b1b26c43
runtime/gc/accounting/card_table.cc
runtime/gc/heap-inl.h
runtime/mirror/class.cc