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 19:15:31 +0000 (12:15 -0700)
commit59fe711f88191cd8ca1a386c4fa0d2f9e484af50
tree056ec95d5e0c57bbaaf174b9c321a4e4cba4c50c
parent63c8d355a13f62a1e4becb04c8f2cc0eccf849d0
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

(cherry picked from commit fd22d5bada15d95b5ea8ab5a4dda39077e1a54ee)

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