< prev index next >

test/hotspot/jtreg/vmTestbase/nsk/jvmti/SetNativeMethodPrefix/SetNativeMethodPrefix002/SetNativeMethodPrefix002.cpp

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

*** 58,74 **** /* ============================================================================= */ static jboolean setMethodPrefix (char *prefix) { ! if (!NSK_JVMTI_VERIFY( ! NSK_CPP_STUB2( ! SetNativeMethodPrefix ! , jvmti ! , prefix) ! ) ! ) return JNI_FALSE; return JNI_TRUE; } --- 58,68 ---- /* ============================================================================= */ static jboolean setMethodPrefix (char *prefix) { ! if (!NSK_JVMTI_VERIFY(jvmti->SetNativeMethodPrefix(prefix))) return JNI_FALSE; return JNI_TRUE; }
*** 112,140 **** (jvmti = nsk_jvmti_createJVMTIEnv(vm, reserved)) != NULL ) ) return JNI_ERR; ! if (!NSK_JVMTI_VERIFY( ! NSK_CPP_STUB2( ! GetCapabilities ! , jvmti ! , &caps) ! ) ! ) return JNI_ERR; // Register all necessary JVM capabilities caps.can_set_native_method_prefix = 1; ! if (!NSK_JVMTI_VERIFY( ! NSK_CPP_STUB2( ! AddCapabilities ! , jvmti ! , &caps) ! ) ! ) return JNI_ERR; if (apply) { if (!setMethodPrefix(prefix)) { --- 106,122 ---- (jvmti = nsk_jvmti_createJVMTIEnv(vm, reserved)) != NULL ) ) return JNI_ERR; ! if (!NSK_JVMTI_VERIFY(jvmti->GetCapabilities(&caps))) return JNI_ERR; // Register all necessary JVM capabilities caps.can_set_native_method_prefix = 1; ! if (!NSK_JVMTI_VERIFY(jvmti->AddCapabilities(&caps))) return JNI_ERR; if (apply) { if (!setMethodPrefix(prefix)) {
< prev index next >