< prev index next >

test/hotspot/jtreg/vmTestbase/nsk/jvmti/VMDeath/vmdeath001/vmdeath001.cpp

Print this page
rev 52185 : 8212148: Remove remaining NSK_CPP_STUBs
Summary: Remove remaining macros
Reviewed-by: amenkov, phh

*** 46,57 **** 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))) exit(95 + STATUS_FAILED); if (phase != JVMTI_PHASE_LIVE) { NSK_COMPLAIN1("TEST FAILED: VMDeath event received during non-live phase %s\n", TranslatePhase(phase)); --- 46,56 ---- VMDeath(jvmtiEnv *jvmti_env, JNIEnv *env) { jvmtiPhase phase; NSK_DISPLAY0("CHECK PASSED: VMDeath event received\n"); ! 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,102 **** 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)))) 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))) return JNI_ERR; NSK_DISPLAY0("enabling VMDeath event done\n"); return JNI_OK; } --- 85,99 ---- return JNI_ERR; NSK_DISPLAY0("setting event callbacks ...\n"); (void) memset(&callbacks, 0, sizeof(callbacks)); callbacks.VMDeath = &VMDeath; ! 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(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 >