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