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