< prev index next >
test/hotspot/jtreg/vmTestbase/nsk/jvmti/VMDeath/vmdeath001/vmdeath001.cpp
Print this page
rev 52185 : [mq]: refactor
@@ -46,12 +46,11 @@
VMDeath(jvmtiEnv *jvmti_env, JNIEnv *env) {
jvmtiPhase phase;
NSK_DISPLAY0("CHECK PASSED: VMDeath event received\n");
- if (!NSK_JVMTI_VERIFY(NSK_CPP_STUB2(GetPhase,
- jvmti, &phase)))
+ if (!NSK_JVMTI_VERIFY(jvmti->GetPhase(&phase)))
exit(95 + STATUS_FAILED);
if (phase != JVMTI_PHASE_LIVE) {
NSK_COMPLAIN1("TEST FAILED: VMDeath event received during non-live phase %s\n",
TranslatePhase(phase));
@@ -86,17 +85,15 @@
return JNI_ERR;
NSK_DISPLAY0("setting event callbacks ...\n");
(void) memset(&callbacks, 0, sizeof(callbacks));
callbacks.VMDeath = &VMDeath;
- if (!NSK_JVMTI_VERIFY(NSK_CPP_STUB3(SetEventCallbacks,
- jvmti, &callbacks, sizeof(callbacks))))
+ if (!NSK_JVMTI_VERIFY(jvmti->SetEventCallbacks(&callbacks, sizeof(callbacks))))
return JNI_ERR;
NSK_DISPLAY0("setting event callbacks done\nenabling VMDeath event ...\n");
- if (!NSK_JVMTI_VERIFY(NSK_CPP_STUB4(SetEventNotificationMode,
- jvmti, JVMTI_ENABLE, JVMTI_EVENT_VM_DEATH, NULL)))
+ if (!NSK_JVMTI_VERIFY(jvmti->SetEventNotificationMode(JVMTI_ENABLE, JVMTI_EVENT_VM_DEATH, NULL)))
return JNI_ERR;
NSK_DISPLAY0("enabling VMDeath event done\n");
return JNI_OK;
}
< prev index next >