提交 f0161058 编写于 作者: C chegar

6974093: Thread.clone should NOT invoke addUnstarted on started threads

Reviewed-by: dholmes, coffeys
上级 11b89cb0
......@@ -441,7 +441,9 @@ class Thread implements Runnable {
t.threadLocals = null;
group.checkAccess();
group.addUnstarted();
if (threadStatus == 0) {
group.addUnstarted();
}
t.setPriority(priority);
final Thread current = Thread.currentThread();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册