mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-24 13:24:27 +02:00
8149697: Fix for 8145725 is broken
As per the existing comment we needed to check the saved 'index' instead Reviewed-by: gthornbr, dcubed, kbarrett
This commit is contained in:
parent
19bc0f3f2d
commit
1246d21895
1 changed files with 1 additions and 1 deletions
|
@ -5756,7 +5756,7 @@ void Parker::unpark() {
|
|||
int index = _cur_index;
|
||||
status = pthread_mutex_unlock(_mutex);
|
||||
assert_status(status == 0, status, "invariant");
|
||||
if (s < 1 && _cur_index != -1) {
|
||||
if (s < 1 && index != -1) {
|
||||
// thread is definitely parked
|
||||
status = pthread_cond_signal(&_cond[index]);
|
||||
assert_status(status == 0, status, "invariant");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue