OSDN Git Service

Release the thread_list lock while waiting for daemons.
authorNicolas Geoffray <ngeoffray@google.com>
Mon, 20 Jun 2016 14:58:32 +0000 (15:58 +0100)
committerNicolas Geoffray <ngeoffray@google.com>
Tue, 21 Jun 2016 09:41:49 +0000 (10:41 +0100)
commitaa45daaddee752fcc7f1e5b0e207748bc6bed0a4
tree7274a3ca9564bb1fa6269a9ff82c22794c40c3ea
parent34cfc661a5f291b1af710a90c65d846b6b43d30e
Release the thread_list lock while waiting for daemons.

Daemons might be in a state where they are actually waiting for
it (for example Thread.isInterrupted). If the shutdown thread
doesn't release the lock, such daemon cannot make progress.

bug:27353286
Change-Id: Ib7f4c7d1b56d73a829d01d5bfc0ab663fbb80b46
runtime/thread_list.cc
test/607-daemon-stress/expected.txt [new file with mode: 0644]
test/607-daemon-stress/info.txt [new file with mode: 0644]
test/607-daemon-stress/src/Main.java [new file with mode: 0644]