< prev index next >

test/hotspot/jtreg/vmTestbase/nsk/jvmti/AttachOnDemand/attach020/attach020Agent00.cpp

Print this page
rev 52200 : [mq]: spaces

*** 116,126 **** jthread thread; if (!NSK_VERIFY((thread = nsk_jvmti_aod_createThread(jni)) != NULL)) return NSK_FALSE; ! if (!NSK_JVMTI_VERIFY(jvmti->RunAgentThread(thread, auxiliaryThreadFunction, NULL, JVMTI_THREAD_NORM_PRIORITY ))) { return NSK_FALSE; } NSK_DISPLAY1("%s: auxiliary thread was started\n", agentName); --- 116,126 ---- jthread thread; if (!NSK_VERIFY((thread = nsk_jvmti_aod_createThread(jni)) != NULL)) return NSK_FALSE; ! if (!NSK_JVMTI_VERIFY(jvmti->RunAgentThread(thread, auxiliaryThreadFunction, NULL, JVMTI_THREAD_NORM_PRIORITY))) { return NSK_FALSE; } NSK_DISPLAY1("%s: auxiliary thread was started\n", agentName);
*** 163,180 **** if (!NSK_VERIFY(startAuxiliaryThread(jvmti, jni))) return JNI_ERR; memset(&caps, 0, sizeof(caps)); caps.can_generate_garbage_collection_events = 1; ! if (!NSK_JVMTI_VERIFY(jvmti->AddCapabilities(&caps)) ) { return JNI_ERR; } memset(&eventCallbacks,0, sizeof(eventCallbacks)); eventCallbacks.GarbageCollectionStart = garbageCollectionStartHandler; eventCallbacks.GarbageCollectionFinish = garbageCollectionFinishHandler; ! if (!NSK_JVMTI_VERIFY(jvmti->SetEventCallbacks(&eventCallbacks, sizeof(eventCallbacks))) ) { return JNI_ERR; } if (!(nsk_jvmti_aod_enableEvents(jvmti, testEvents, testEventsNumber))) { return JNI_ERR; --- 163,180 ---- if (!NSK_VERIFY(startAuxiliaryThread(jvmti, jni))) return JNI_ERR; memset(&caps, 0, sizeof(caps)); caps.can_generate_garbage_collection_events = 1; ! if (!NSK_JVMTI_VERIFY(jvmti->AddCapabilities(&caps))) { return JNI_ERR; } memset(&eventCallbacks,0, sizeof(eventCallbacks)); eventCallbacks.GarbageCollectionStart = garbageCollectionStartHandler; eventCallbacks.GarbageCollectionFinish = garbageCollectionFinishHandler; ! if (!NSK_JVMTI_VERIFY(jvmti->SetEventCallbacks(&eventCallbacks, sizeof(eventCallbacks)))) { return JNI_ERR; } if (!(nsk_jvmti_aod_enableEvents(jvmti, testEvents, testEventsNumber))) { return JNI_ERR;
< prev index next >