< prev index next >

test/hotspot/jtreg/vmTestbase/nsk/jvmti/scenarios/multienv/MA10/ma10t004/ma10t004a.cpp

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

*** 51,74 **** char *signature = NULL; char buffer[32]; SingleStepEventsCount++; ! NSK_JVMTI_VERIFY(NSK_CPP_STUB4(SetEventNotificationMode, ! jvmti_env, JVMTI_DISABLE, JVMTI_EVENT_SINGLE_STEP, NULL)); ! if (!NSK_JVMTI_VERIFY(NSK_CPP_STUB5(GetMethodName, ! jvmti_env, method, &name, &signature, NULL))) { nsk_jvmti_setFailStatus(); return; } NSK_DISPLAY3("SingleStep event: %s%s, location=%s\n", name, signature, jlong_to_string(location, buffer)); 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. */ --- 51,72 ---- char *signature = NULL; char buffer[32]; SingleStepEventsCount++; ! NSK_JVMTI_VERIFY(jvmti_env->SetEventNotificationMode(JVMTI_DISABLE, JVMTI_EVENT_SINGLE_STEP, NULL)); ! if (!NSK_JVMTI_VERIFY(jvmti_env->GetMethodName(method, &name, &signature, NULL))) { nsk_jvmti_setFailStatus(); return; } NSK_DISPLAY3("SingleStep event: %s%s, location=%s\n", name, signature, jlong_to_string(location, buffer)); if (name != NULL) ! jvmti_env->Deallocate((unsigned char*)name); if (signature != NULL) ! jvmti_env->Deallocate((unsigned char*)signature); } /* ========================================================================== */ /** Agent algorithm. */
*** 126,136 **** if (!NSK_VERIFY(nsk_jvmti_setAgentProc(agentProc, NULL))) return JNI_ERR; memset(&caps, 0, sizeof(caps)); caps.can_generate_single_step_events = 1; ! if (!NSK_JVMTI_VERIFY(NSK_CPP_STUB2(AddCapabilities, jvmti, &caps))) { return JNI_ERR; } memset(&callbacks, 0, sizeof(callbacks)); callbacks.SingleStep = &SingleStep; --- 124,134 ---- if (!NSK_VERIFY(nsk_jvmti_setAgentProc(agentProc, NULL))) return JNI_ERR; memset(&caps, 0, sizeof(caps)); caps.can_generate_single_step_events = 1; ! if (!NSK_JVMTI_VERIFY(jvmti->AddCapabilities(&caps))) { return JNI_ERR; } memset(&callbacks, 0, sizeof(callbacks)); callbacks.SingleStep = &SingleStep;
< prev index next >