OSDN Git Service

Wait for GC to finish in ThreadList::~ThreadList
authorMathieu Chartier <mathieuc@google.com>
Wed, 12 Aug 2015 23:40:32 +0000 (16:40 -0700)
committerMathieu Chartier <mathieuc@google.com>
Thu, 13 Aug 2015 01:28:59 +0000 (18:28 -0700)
commit511683764f2580d877725e20514ca4976c91bbfb
treee9a5fa23a95c87cb655affd4249177467ae9dbf5
parentb923298c9b6e47b4110dd0cb23cb6a4e98b8552b
Wait for GC to finish in ThreadList::~ThreadList

Added a DisableGC to the heap instead of using the runtime shutdown
boolean. The runtime shutting down boolean is set to true before the
non daemon threads have exited. These threads may still be doing
allocations and we don't want to throw OOME if unnecessary.

Bug: 18577101
Change-Id: Iceb7048e6bd799aa2716099459c54f8dc0fb8feb
runtime/gc/heap.cc
runtime/gc/heap.h
runtime/thread_list.cc