test/hotspot/jtreg/vmTestbase/nsk/share/locks/LockingThread.java
changeset 59021 cfc7bb9a5a92
parent 49934 44839fbb20db
equal deleted inserted replaced
59020:aebd72de84b0 59021:cfc7bb9a5a92
   323             // try wait with timeout to avoid possible hanging if something will go wrong
   323             // try wait with timeout to avoid possible hanging if something will go wrong
   324             if ((System.currentTimeMillis() - startTime) > 60000) {
   324             if ((System.currentTimeMillis() - startTime) > 60000) {
   325                 throw new TestBug("Locking thread can't reach required state (state: " + requiredState + " wasn't reached) in 1 minute");
   325                 throw new TestBug("Locking thread can't reach required state (state: " + requiredState + " wasn't reached) in 1 minute");
   326             }
   326             }
   327 
   327 
   328             yield();
   328             Thread.yield();
   329         }
   329         }
   330 
   330 
   331         requiredState = null;
   331         requiredState = null;
   332 
   332 
   333         Object relinquishedMonitor = getRelinquishedMonitor();
   333         Object relinquishedMonitor = getRelinquishedMonitor();