OSDN Git Service

Fix a DDMS thread monitoring crash.
authorAndy McFadden <fadden@android.com>
Tue, 24 Aug 2010 21:23:11 +0000 (14:23 -0700)
committerAndy McFadden <fadden@android.com>
Wed, 25 Aug 2010 19:16:01 +0000 (12:16 -0700)
commit3b6ee1a417a717c44e2a59ed73c930f4be8ea54b
tree63fd04f7eedccd0afec2649744e156fa4b86a8e1
parentf16cfefc199d1416c5f83446c1d299786accc737
Fix a DDMS thread monitoring crash.

We changed the order of events during thread attaches, which means
it's now possible to have Thread structs with null threadObj fields.
This bit of code didn't change with the times, which made it possible
for a process being watched by DDMS to crash if we grabbed the thread
state at just the wrong time.

(cherry-pick from dalvik-dev)

Change-Id: Icd7f523ee8327f00693e601c1c82d3a8defb247f
vm/Ddm.c