test/hotspot/jtreg/vmTestbase/nsk/jvmti/RedefineClasses/redefclass001/redefclass001.cpp
changeset 52642 9cfc8b0c45fd
parent 51715 13a63d4a3f8d
equal deleted inserted replaced
52641:09a3f379b927 52642:9cfc8b0c45fd
    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);