提交 d66ae9e9 编写于 作者: D dholmes

8029453: java/util/concurrent/locks/ReentrantLock/TimeoutLockLoops.java failed by timeout

Reviewed-by: bdelsart, ddmitriev, dcubed
上级 ef637014
......@@ -5922,9 +5922,11 @@ void Parker::unpark() {
status = pthread_mutex_unlock(_mutex);
assert (status == 0, "invariant");
} else {
// must capture correct index before unlocking
int index = _cur_index;
status = pthread_mutex_unlock(_mutex);
assert (status == 0, "invariant");
status = pthread_cond_signal (&_cond[_cur_index]);
status = pthread_cond_signal (&_cond[index]);
assert (status == 0, "invariant");
}
} else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册