8231032: ThreadMXBean locking tests fail after JSR 166 refresh

Reviewed-by: martin, mchung, dholmes
This commit is contained in:
Doug Lea 2019-09-27 12:20:14 -07:00
parent 3e3d90d6a1
commit a9254cbcfa
7 changed files with 160 additions and 6 deletions

View file

@ -502,7 +502,7 @@ public abstract class AbstractQueuedSynchronizer
}
public final boolean block() {
while (!isReleasable()) LockSupport.park(this);
while (!isReleasable()) LockSupport.park();
return true;
}
}