test/hotspot/jtreg/vmTestbase/nsk/aod/VirtualMachine/VirtualMachine07/agent02.cpp
changeset 52642 9cfc8b0c45fd
parent 51774 79dc492c00ab
equal deleted inserted replaced
52641:09a3f379b927 52642:9cfc8b0c45fd
    39     JNIEnv* jni;
    39     JNIEnv* jni;
    40     int success = 1;
    40     int success = 1;
    41 
    41 
    42     // can't use NSK_DISPLAY since needed for nsk_ functions initialization isn't done here
    42     // can't use NSK_DISPLAY since needed for nsk_ functions initialization isn't done here
    43 
    43 
    44     if ((jni = (JNIEnv*) nsk_aod_createJNIEnv(vm)) == NULL)
    44     jni = (JNIEnv*) nsk_aod_createJNIEnv(vm);
       
    45     if (jni == NULL)
    45         return JNI_ERR;
    46         return JNI_ERR;
    46 
    47 
    47     printf("%s: initialization was done\n", AGENT_NAME);
    48     printf("%s: initialization was done\n", AGENT_NAME);
    48     fflush(stdout);
    49     fflush(stdout);
    49 
    50