6974093: Thread.clone should NOT invoke addUnstarted on started threads
Reviewed-by: dholmes, coffeys
This commit is contained in:
parent
3dde10558a
commit
3072a8ef28
@ -441,7 +441,9 @@ class Thread implements Runnable {
|
|||||||
t.threadLocals = null;
|
t.threadLocals = null;
|
||||||
|
|
||||||
group.checkAccess();
|
group.checkAccess();
|
||||||
group.addUnstarted();
|
if (threadStatus == 0) {
|
||||||
|
group.addUnstarted();
|
||||||
|
}
|
||||||
t.setPriority(priority);
|
t.setPriority(priority);
|
||||||
|
|
||||||
final Thread current = Thread.currentThread();
|
final Thread current = Thread.currentThread();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user