< prev index next >
test/hotspot/jtreg/vmTestbase/nsk/jvmti/ResumeThreadList/resumethrdlst002/resumethrdlst002.cpp
Print this page
rev 52200 : [mq]: spaces
*** 248,258 ****
JNIEXPORT void JNICALL
callbackThreadEnd(jvmtiEnv* jvmti, JNIEnv* jni, jthread thread) {
int i = 0;
jvmtiError e = jvmti->RawMonitorEnter(eventsReceivedMtx);
! if ( !NSK_JVMTI_VERIFY(e) ) {
NSK_DISPLAY1(" ... ERROR entering raw monitor for thread %p\n", (void *) thread);
return;
}
/* check if event is for tested thread */
--- 248,258 ----
JNIEXPORT void JNICALL
callbackThreadEnd(jvmtiEnv* jvmti, JNIEnv* jni, jthread thread) {
int i = 0;
jvmtiError e = jvmti->RawMonitorEnter(eventsReceivedMtx);
! if (!NSK_JVMTI_VERIFY(e)) {
NSK_DISPLAY1(" ... ERROR entering raw monitor for thread %p\n", (void *) thread);
return;
}
/* check if event is for tested thread */
*** 321,331 ****
return JNI_ERR;
}
/* create a mutex for the eventsReceived variable */
{
! if ( ! NSK_JVMTI_VERIFY(jvmti->CreateRawMonitor("eventsReceived", &eventsReceivedMtx))) {
return JNI_ERR;
}
}
/* register agent proc and arg */
--- 321,331 ----
return JNI_ERR;
}
/* create a mutex for the eventsReceived variable */
{
! if (!NSK_JVMTI_VERIFY(jvmti->CreateRawMonitor("eventsReceived", &eventsReceivedMtx))) {
return JNI_ERR;
}
}
/* register agent proc and arg */
< prev index next >