mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8231032: ThreadMXBean locking tests fail after JSR 166 refresh
Reviewed-by: martin, mchung, dholmes
This commit is contained in:
parent
3e3d90d6a1
commit
a9254cbcfa
7 changed files with 160 additions and 6 deletions
|
@ -130,7 +130,7 @@ public abstract class AbstractQueuedLongSynchronizer
|
|||
}
|
||||
|
||||
public final boolean block() {
|
||||
while (!isReleasable()) LockSupport.park(this);
|
||||
while (!isReleasable()) LockSupport.park();
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -502,7 +502,7 @@ public abstract class AbstractQueuedSynchronizer
|
|||
}
|
||||
|
||||
public final boolean block() {
|
||||
while (!isReleasable()) LockSupport.park(this);
|
||||
while (!isReleasable()) LockSupport.park();
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue