< prev index next >

test/hotspot/jtreg/vmTestbase/nsk/jvmti/scenarios/multienv/MA10/ma10t002/ma10t002a.cpp

Print this page
rev 52100 : 8212082: Remove the NSK_CPP_STUB macros for remaining vmTestbase/jvmti/[sS]*
Summary:
Reviewed-by:

*** 49,68 **** jthread thread, jmethodID method) { char *name = NULL; char *signature = NULL; MethodEntryEventsCount++; ! if (!NSK_JVMTI_VERIFY(NSK_CPP_STUB5(GetMethodName, ! jvmti_env, method, &name, &signature, NULL))) { nsk_jvmti_setFailStatus(); return; } NSK_DISPLAY2("MethodEntry event: %s%s\n", name, signature); if (name != NULL) ! NSK_CPP_STUB2(Deallocate, jvmti_env, (unsigned char*)name); if (signature != NULL) ! NSK_CPP_STUB2(Deallocate, jvmti_env, (unsigned char*)signature); } /* ========================================================================== */ /** Agent algorithm. */ --- 49,67 ---- jthread thread, jmethodID method) { char *name = NULL; char *signature = NULL; MethodEntryEventsCount++; ! if (!NSK_JVMTI_VERIFY(jvmti_env->GetMethodName(method, &name, &signature, NULL))) { nsk_jvmti_setFailStatus(); return; } NSK_DISPLAY2("MethodEntry event: %s%s\n", name, signature); if (name != NULL) ! jvmti_env->Deallocate((unsigned char*)name); if (signature != NULL) ! jvmti_env->Deallocate((unsigned char*)signature); } /* ========================================================================== */ /** Agent algorithm. */
*** 120,130 **** if (!NSK_VERIFY(nsk_jvmti_setAgentProc(agentProc, NULL))) return JNI_ERR; memset(&caps, 0, sizeof(caps)); caps.can_generate_method_entry_events = 1; ! if (!NSK_JVMTI_VERIFY(NSK_CPP_STUB2(AddCapabilities, jvmti, &caps))) { return JNI_ERR; } memset(&callbacks, 0, sizeof(callbacks)); callbacks.MethodEntry = &MethodEntry; --- 119,129 ---- if (!NSK_VERIFY(nsk_jvmti_setAgentProc(agentProc, NULL))) return JNI_ERR; memset(&caps, 0, sizeof(caps)); caps.can_generate_method_entry_events = 1; ! if (!NSK_JVMTI_VERIFY(jvmti->AddCapabilities(&caps))) { return JNI_ERR; } memset(&callbacks, 0, sizeof(callbacks)); callbacks.MethodEntry = &MethodEntry;
< prev index next >