8201603: MonitorContendedEnter failure in nsk/jvmti/scenarios/contention/TC02/tc02t001

Reviewed-by: cjplummer
This commit is contained in:
Gary Adams 2018-10-08 14:57:07 -04:00
parent 182a991df2
commit 7b7315dbed

View File

@ -71,7 +71,7 @@ public class tc02t001 extends DebugeeClass {
thread.waitingBarrier1.unlock();
try {
Thread.sleep(100);
Thread.sleep(1000); // Wait for contended "synchronized (M)"
thread.M.wait(timeout);
} catch (InterruptedException e) {
throw new Failure(e);
@ -79,7 +79,7 @@ public class tc02t001 extends DebugeeClass {
thread.waitingBarrier2.unlock();
try {
Thread.sleep(100);
Thread.sleep(1000); // Wait for contended "synchronized (M)"
thread.M.wait(timeout);
} catch (InterruptedException e) {
throw new Failure(e);
@ -87,7 +87,7 @@ public class tc02t001 extends DebugeeClass {
thread.waitingBarrier3.unlock();
try {
Thread.sleep(100);
Thread.sleep(1000); // Wait for contended "synchronized (M)"
thread.M.wait(timeout);
} catch (InterruptedException e) {
throw new Failure(e);