test/hotspot/jtreg/vmTestbase/nsk/aod/VirtualMachine/VirtualMachine07/agent02.cpp
equal
deleted
inserted
replaced
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 |