< prev index next >

test/hotspot/jtreg/vmTestbase/nsk/share/locks/LockingThread.java

Print this page
rev 56807 : [mq]: 8232684-v2

*** 323,333 **** // try wait with timeout to avoid possible hanging if something will go wrong if ((System.currentTimeMillis() - startTime) > 60000) { throw new TestBug("Locking thread can't reach required state (state: " + requiredState + " wasn't reached) in 1 minute"); } ! yield(); } requiredState = null; Object relinquishedMonitor = getRelinquishedMonitor(); --- 323,333 ---- // try wait with timeout to avoid possible hanging if something will go wrong if ((System.currentTimeMillis() - startTime) > 60000) { throw new TestBug("Locking thread can't reach required state (state: " + requiredState + " wasn't reached) in 1 minute"); } ! Thread.yield(); } requiredState = null; Object relinquishedMonitor = getRelinquishedMonitor();
< prev index next >