OSDN Git Service

DO NOT MERGE: Fix implementation of Thread.isAlive
authorAndy McFadden <fadden@android.com>
Tue, 1 Sep 2009 19:20:13 +0000 (12:20 -0700)
committerAndy McFadden <fadden@android.com>
Wed, 2 Sep 2009 21:30:54 +0000 (14:30 -0700)
commit5315c9fbd63037de34016b337821053c116c7b3a
tree3fecf296c375fff81b235badd8bca4cba6cd9d37
parent94e11fc41d9bb7648932a21be7fa895c2432f610
DO NOT MERGE: Fix implementation of Thread.isAlive

(Originally submitted to master, pulling over to eclair.)

The implementation of Thread.isAlive() was changed a couple of years ago
as part of the Harmony integration.  The current version relies on the
thread's state value to determine its liveness, but the VM was
originally written to be like JamVM, which used GNU ClassPath, which
uses the vmThread field instead.

It looks like it's possible for Thread.join() to get stuck, though as
far as I know this hasn't happened.

We're essentially rolling back part of 27774-p9.  For internal bug 1966734.

Also: ran --update on test 044.
libcore/luni-kernel/src/main/java/java/lang/Thread.java
tests/044-proxy/expected.txt