< prev index next >
test/hotspot/jtreg/vmTestbase/nsk/jvmti/scenarios/hotswap/HS103/hs103t002/hs103t002.cpp
Print this page
rev 52215 : 8212770: Remove spaces before/after () for vmTestbase/jvmti/[s-u]
Summary:
Reviewed-by:
*** 71,81 ****
nsk_printf("doRedefineInNativeThread\n");
cla = jni->FindClass(SEARCH_NAME);
nsk_jvmti_getFileName(redefineNumber, FILE_NAME, fileName, sizeof(fileName)/sizeof(char));
for(i = 0; i < 30; i++) {
nsk_printf(" Inside the redefine method..\n");
! if ( nsk_jvmti_redefineClass(jvmti, cla,fileName) == NSK_TRUE) {
nsk_printf("\nMyClass :: Successfully redefined..\n");
} else {
nsk_printf("\nMyClass :: Failed to redefine ..\n");
if (!NSK_JNI_VERIFY_VOID(jni, jni->CallStaticVoidMethod(testClass, setRedefinitionFailed)))
--- 71,81 ----
nsk_printf("doRedefineInNativeThread\n");
cla = jni->FindClass(SEARCH_NAME);
nsk_jvmti_getFileName(redefineNumber, FILE_NAME, fileName, sizeof(fileName)/sizeof(char));
for(i = 0; i < 30; i++) {
nsk_printf(" Inside the redefine method..\n");
! if (nsk_jvmti_redefineClass(jvmti, cla,fileName) == NSK_TRUE) {
nsk_printf("\nMyClass :: Successfully redefined..\n");
} else {
nsk_printf("\nMyClass :: Failed to redefine ..\n");
if (!NSK_JNI_VERIFY_VOID(jni, jni->CallStaticVoidMethod(testClass, setRedefinitionFailed)))
*** 110,125 ****
jint rc;
nsk_printf("Agent:: VM.. Started..\n");
rc = vm->GetEnv((void **)&jvmti, JVMTI_VERSION_1_1);
! if (rc != JNI_OK ) {
nsk_printf("Agent:: Could not load JVMTI interface \n");
return JNI_ERR;
} else {
jvmtiCapabilities caps;
! if (nsk_jvmti_parseOptions(options) == NSK_FALSE ) {
nsk_printf("# error agent Failed to parse options \n");
return JNI_ERR;
}
memset(&caps, 0, sizeof(caps));
caps.can_redefine_classes = 1;
--- 110,125 ----
jint rc;
nsk_printf("Agent:: VM.. Started..\n");
rc = vm->GetEnv((void **)&jvmti, JVMTI_VERSION_1_1);
! if (rc != JNI_OK) {
nsk_printf("Agent:: Could not load JVMTI interface \n");
return JNI_ERR;
} else {
jvmtiCapabilities caps;
! if (nsk_jvmti_parseOptions(options) == NSK_FALSE) {
nsk_printf("# error agent Failed to parse options \n");
return JNI_ERR;
}
memset(&caps, 0, sizeof(caps));
caps.can_redefine_classes = 1;
*** 152,162 ****
err = jvmti->RunAgentThread(testAgentThread, &doRedefineInNativeThread, NULL,
JVMTI_THREAD_NORM_PRIORITY);
if (err == JVMTI_ERROR_INVALID_PRIORITY) {
nsk_printf(" JVMTI_ERROR_INVALID_PRIORITY ..\n");
return JNI_ERR;
! } else if ( err == JVMTI_ERROR_INVALID_THREAD) {
nsk_printf(" JVMTI_ERROR_INVALID_THREAD ..\n");
return JNI_ERR;
} else if (err == JVMTI_ERROR_NULL_POINTER) {
nsk_printf(" JVMTI_ERROR_NULL_POINTER ..\n");
return JNI_ERR;
--- 152,162 ----
err = jvmti->RunAgentThread(testAgentThread, &doRedefineInNativeThread, NULL,
JVMTI_THREAD_NORM_PRIORITY);
if (err == JVMTI_ERROR_INVALID_PRIORITY) {
nsk_printf(" JVMTI_ERROR_INVALID_PRIORITY ..\n");
return JNI_ERR;
! } else if (err == JVMTI_ERROR_INVALID_THREAD) {
nsk_printf(" JVMTI_ERROR_INVALID_THREAD ..\n");
return JNI_ERR;
} else if (err == JVMTI_ERROR_NULL_POINTER) {
nsk_printf(" JVMTI_ERROR_NULL_POINTER ..\n");
return JNI_ERR;
< prev index next >