From ff1f2fad6e332590197b52453ac305fc366d92ee Mon Sep 17 00:00:00 2001 From: Serguei Spitsyn Date: Fri, 28 Jun 2019 16:06:44 -0700 Subject: [PATCH] 8226917: jvmti/scenarios/contention/TC04/tc04t001/TestDescription.java fails on jvmti->InterruptThread (JVMTI_ERROR_THREAD_NOT_ALIVE) Fix one more sync issue in the test Reviewed-by: dcubed, gadams, amenkov --- .../scenarios/contention/TC04/tc04t001/tc04t001.cpp | 9 --------- 1 file changed, 9 deletions(-) diff --git a/test/hotspot/jtreg/vmTestbase/nsk/jvmti/scenarios/contention/TC04/tc04t001/tc04t001.cpp b/test/hotspot/jtreg/vmTestbase/nsk/jvmti/scenarios/contention/TC04/tc04t001/tc04t001.cpp index 718434ae275..6000051f1ad 100644 --- a/test/hotspot/jtreg/vmTestbase/nsk/jvmti/scenarios/contention/TC04/tc04t001/tc04t001.cpp +++ b/test/hotspot/jtreg/vmTestbase/nsk/jvmti/scenarios/contention/TC04/tc04t001/tc04t001.cpp @@ -119,19 +119,10 @@ MonitorContendedEnter(jvmtiEnv *jvmti, JNIEnv* jni, jthread thr, jobject obj) { /* check if event is for tested object */ if (jni->IsSameObject(object_M, obj)) { - jvmtiMonitorUsage usageInfo; - if (lockSyncLock(jvmti)) { enterEventsCount++; unlockSyncLock(jvmti); } - - if (!NSK_JVMTI_VERIFY(jvmti->GetObjectMonitorUsage(obj, &usageInfo))) { - nsk_jvmti_setFailStatus(); - } else if (usageInfo.owner != NULL) { - if (!NSK_JVMTI_VERIFY(jvmti->InterruptThread(usageInfo.owner))) - nsk_jvmti_setFailStatus(); - } } }