test/hotspot/jtreg/vmTestbase/nsk/jvmti/scenarios/hotswap/HS204/hs204t004/hs204t004.cpp
equal
deleted
inserted
replaced
95 clas = jni->FindClass(CLASS_LOADER_CLASS_NAME); |
95 clas = jni->FindClass(CLASS_LOADER_CLASS_NAME); |
96 nsk_printf("Agent:: Break Pont Reached..\n"); |
96 nsk_printf("Agent:: Break Pont Reached..\n"); |
97 /* Redefine the class loader and then pop the |
97 /* Redefine the class loader and then pop the |
98 frame and resume the thread..*/ |
98 frame and resume the thread..*/ |
99 nsk_jvmti_getFileName(redefineNumber, FILE_NAME, fileName, sizeof(fileName)/sizeof(char)); |
99 nsk_jvmti_getFileName(redefineNumber, FILE_NAME, fileName, sizeof(fileName)/sizeof(char)); |
100 if (nsk_jvmti_redefineClass(jvmti_env, clas, fileName) == NSK_TRUE) { |
100 if (nsk_jvmti_redefineClass(jvmti_env, clas, fileName)) { |
101 nsk_printf("\nMyClass :: Successfully redefined..\n"); |
101 nsk_printf("\nMyClass :: Successfully redefined..\n"); |
102 } else { |
102 } else { |
103 nsk_printf("\nMyClass :: Failed to redefine ..\n"); |
103 nsk_printf("\nMyClass :: Failed to redefine ..\n"); |
104 } |
104 } |
105 nsk_printf(" End of REDEFINE CLASS LOADER \n"); |
105 nsk_printf(" End of REDEFINE CLASS LOADER \n"); |