test/hotspot/jtreg/vmTestbase/nsk/jvmti/RedefineClasses/StressRedefine/stressRedefine.cpp
changeset 52642 9cfc8b0c45fd
parent 51715 13a63d4a3f8d
equal deleted inserted replaced
52641:09a3f379b927 52642:9cfc8b0c45fd
    38 
    38 
    39 jint  Agent_Initialize(JavaVM *vm, char *options, void *reserved) {
    39 jint  Agent_Initialize(JavaVM *vm, char *options, void *reserved) {
    40     jint res;
    40     jint res;
    41     jvmtiError err;
    41     jvmtiError err;
    42 
    42 
    43     if ((res = vm->GetEnv((void **) &jvmti, JVMTI_VERSION_1_1)) != JNI_OK) {
    43     res = vm->GetEnv((void **) &jvmti, JVMTI_VERSION_1_1);
       
    44     if (res != JNI_OK) {
    44         printf("%s: Failed to call GetEnv: error=%d\n", __FILE__, res);
    45         printf("%s: Failed to call GetEnv: error=%d\n", __FILE__, res);
    45         return JNI_ERR;
    46         return JNI_ERR;
    46     }
    47     }
    47 
    48 
    48     err = jvmti->GetPotentialCapabilities(&caps);
    49     err = jvmti->GetPotentialCapabilities(&caps);