test/hotspot/jtreg/vmTestbase/nsk/jvmti/scenarios/hotswap/HS203/hs203t002/hs203t002.cpp
equal
deleted
inserted
replaced
103 } else { |
103 } else { |
104 nsk_printf(" Failed to redefine..\n"); |
104 nsk_printf(" Failed to redefine..\n"); |
105 return; |
105 return; |
106 } |
106 } |
107 err=jvmti->SuspendThread(thread); |
107 err=jvmti->SuspendThread(thread); |
108 if (err == JVMTI_ERROR_NONE) { |
108 if (err == JVMTI_ERROR_NONE) { |
109 nsk_printf("Agent:: Succeded in suspending..\n"); |
109 nsk_printf("Agent:: Succeded in suspending..\n"); |
110 } else { |
110 } else { |
111 nsk_printf(" ## Error occured %s \n",TranslateError(err)); |
111 nsk_printf(" ## Error occured %s \n",TranslateError(err)); |
112 } |
112 } |
113 } |
113 } |
138 #endif |
138 #endif |
139 jint Agent_Initialize(JavaVM *vm, char *options, void *reserved) { |
139 jint Agent_Initialize(JavaVM *vm, char *options, void *reserved) { |
140 jint rc ; |
140 jint rc ; |
141 nsk_printf("Agent:: VM.. Started..\n"); |
141 nsk_printf("Agent:: VM.. Started..\n"); |
142 rc=vm->GetEnv((void **)&jvmti, JVMTI_VERSION_1_1); |
142 rc=vm->GetEnv((void **)&jvmti, JVMTI_VERSION_1_1); |
143 if (rc!= JNI_OK) { |
143 if (rc != JNI_OK) { |
144 nsk_printf("Agent:: Could not load JVMTI interface \n"); |
144 nsk_printf("Agent:: Could not load JVMTI interface \n"); |
145 return JNI_ERR; |
145 return JNI_ERR; |
146 } else { |
146 } else { |
147 jvmtiCapabilities caps; |
147 jvmtiCapabilities caps; |
148 jvmtiEventCallbacks eventCallbacks; |
148 jvmtiEventCallbacks eventCallbacks; |