test/hotspot/jtreg/vmTestbase/nsk/jvmti/RedefineClasses/redefclass001/redefclass001.cpp
equal
deleted
inserted
replaced
49 #endif |
49 #endif |
50 jint Agent_Initialize(JavaVM *vm, char *options, void *reserved) { |
50 jint Agent_Initialize(JavaVM *vm, char *options, void *reserved) { |
51 jint res; |
51 jint res; |
52 jvmtiError err; |
52 jvmtiError err; |
53 |
53 |
54 if ((res = vm->GetEnv((void **) &jvmti, JVMTI_VERSION_1_1)) != JNI_OK) { |
54 res = vm->GetEnv((void **) &jvmti, JVMTI_VERSION_1_1); |
|
55 if (res != JNI_OK) { |
55 printf("%s: Failed to call GetEnv: error=%d\n", __FILE__, res); |
56 printf("%s: Failed to call GetEnv: error=%d\n", __FILE__, res); |
56 return JNI_ERR; |
57 return JNI_ERR; |
57 } |
58 } |
58 |
59 |
59 err = jvmti->GetPotentialCapabilities(&caps); |
60 err = jvmti->GetPotentialCapabilities(&caps); |