test/hotspot/jtreg/vmTestbase/nsk/jvmti/scenarios/hotswap/HS302/hs302t007/hs302t007.cpp
equal
deleted
inserted
replaced
63 jint Agent_Initialize(JavaVM *vm, char *options, void *reserved) { |
63 jint Agent_Initialize(JavaVM *vm, char *options, void *reserved) { |
64 jint rc ; |
64 jint rc ; |
65 jvmtiEnv * jvmti; |
65 jvmtiEnv * jvmti; |
66 nsk_printf("Agent:: VM.. Started..\n"); |
66 nsk_printf("Agent:: VM.. Started..\n"); |
67 rc=vm->GetEnv((void **)&jvmti, JVMTI_VERSION_1_1); |
67 rc=vm->GetEnv((void **)&jvmti, JVMTI_VERSION_1_1); |
68 if (rc!= JNI_OK) { |
68 if (rc != JNI_OK) { |
69 nsk_printf("Agent:: Could not load JVMTI interface \n"); |
69 nsk_printf("Agent:: Could not load JVMTI interface \n"); |
70 return JNI_ERR; |
70 return JNI_ERR; |
71 } else { |
71 } else { |
72 jvmtiCapabilities caps; |
72 jvmtiCapabilities caps; |
73 jvmtiEventCallbacks eventCallbacks; |
73 jvmtiEventCallbacks eventCallbacks; |