OSDN Git Service

Fix issue with Thread.setName hanging after Thread.start
authorBrian Carlstrom <bdc@google.com>
Thu, 28 Aug 2014 06:43:46 +0000 (23:43 -0700)
committerIan Rogers <irogers@google.com>
Thu, 28 Aug 2014 18:13:48 +0000 (11:13 -0700)
commit37c16453a92bbf1a47f042000318a1b60381017d
tree3be22a91d7cae077c4544b44374667dd29f0413e
parentcd7a048cfac23e6ec3e1ba3ab4c1dddb322eaadf
Fix issue with Thread.setName hanging after Thread.start

When suspending a thread by peer the invariant that only attached threads are
suspended must be maintained. Add a ThreadList::Contains check which requires
making this method non-static.
Add some extra thread logging.

Bug: 17302037
Change-Id: I89af9840e398c2ceadeb736c431dfe3be8f3ba06
runtime/debugger.cc
runtime/native/dalvik_system_VMStack.cc
runtime/native/java_lang_Thread.cc
runtime/thread_list.cc
runtime/thread_list.h
test/051-thread/expected.txt
test/051-thread/src/Main.java