OSDN Git Service

Add sleep in SuspendAllDaemonThreadsForShutdown
authorMathieu Chartier <mathieuc@google.com>
Mon, 11 Jan 2016 18:19:06 +0000 (10:19 -0800)
committerMathieu Chartier <mathieuc@google.com>
Tue, 12 Jan 2016 17:56:18 +0000 (09:56 -0800)
commit62597d1dc4e62d36addcc2f1c452cbd6f565a420
tree01ab6184c9febdbdf5fbfd1ed33e4469aaf56974
parentc3ba07ef76549129705af28173070b88a1c39531
Add sleep in SuspendAllDaemonThreadsForShutdown

Only sleep if there are still daemon threads. Since we have already
shutdown the runtime daemons, this is a rare case. The goal of the
sleep is to leave daemon threads time to become blocked in a place
where they ideally will not touch runtime state.

Bug: 26483935
Bug: 18577101

Change-Id: Iad12209e771720523620e0a3829a75ec4647f58b
runtime/thread_list.cc