diff --git a/jcl/src/java.base/share/classes/java/lang/Thread.java b/jcl/src/java.base/share/classes/java/lang/Thread.java index 42427755c54..29ca60a66e4 100644 --- a/jcl/src/java.base/share/classes/java/lang/Thread.java +++ b/jcl/src/java.base/share/classes/java/lang/Thread.java @@ -746,13 +746,10 @@ public static boolean interrupted() { * @see Thread#start */ public final boolean isAlive() { - synchronized (lock) { - /*[PR CMVC 88976] the Thread is alive until cleanup() is called */ - return threadRef != NO_REF; - } + /*[PR CMVC 88976] the Thread is alive until cleanup() is called */ + return threadRef != NO_REF; } -/*[PR 1FJMO7Q] A Thread can be !isAlive() and still be in its ThreadGroup */ /** * Answers true if the receiver has * already died and been removed from the ThreadGroup @@ -764,10 +761,8 @@ public final boolean isAlive() { * @see Thread#isAlive */ private boolean isDead() { - // Has already started, is not alive anymore, and has been removed from the ThreadGroup - synchronized(lock) { - return started && threadRef == NO_REF; - } + /* Has already started and is not alive anymore. */ + return (started && (threadRef == NO_REF)); } /**