< prev index next >

test/hotspot/jtreg/vmTestbase/nsk/jvmti/DynamicCodeGenerated/dyncodgen001/dyncodgen001.cpp

Print this page
rev 51942 : [mq]: refactor

*** 114,132 **** nsk_jvmti_createJVMTIEnv(jvm, reserved)) != NULL)) return JNI_ERR; memset(&callbacks, 0, sizeof(callbacks)); callbacks.DynamicCodeGenerated = &DynamicCodeGenerated; ! if (!NSK_JVMTI_VERIFY( ! NSK_CPP_STUB3(SetEventCallbacks, jvmti, ! &callbacks, sizeof(callbacks)))) return JNI_ERR; /* enable DynamicCodeGenerated event */ if (!NSK_JVMTI_VERIFY( ! NSK_CPP_STUB4(SetEventNotificationMode, jvmti, JVMTI_ENABLE, ! JVMTI_EVENT_DYNAMIC_CODE_GENERATED, NULL))) return JNI_ERR; /* register agent proc and arg */ if (!NSK_VERIFY(nsk_jvmti_setAgentProc(agentProc, NULL))) return JNI_ERR; --- 114,129 ---- nsk_jvmti_createJVMTIEnv(jvm, reserved)) != NULL)) return JNI_ERR; memset(&callbacks, 0, sizeof(callbacks)); callbacks.DynamicCodeGenerated = &DynamicCodeGenerated; ! if (!NSK_JVMTI_VERIFY(jvmti->SetEventCallbacks(&callbacks, sizeof(callbacks)))) return JNI_ERR; /* enable DynamicCodeGenerated event */ if (!NSK_JVMTI_VERIFY( ! jvmti->SetEventNotificationMode(JVMTI_ENABLE, JVMTI_EVENT_DYNAMIC_CODE_GENERATED, NULL))) return JNI_ERR; /* register agent proc and arg */ if (!NSK_VERIFY(nsk_jvmti_setAgentProc(agentProc, NULL))) return JNI_ERR;
< prev index next >