test/hotspot/jtreg/vmTestbase/nsk/jvmti/GetCurrentContendedMonitor/contmon003/contmon003.cpp
equal
deleted
inserted
replaced
61 if (res != JNI_OK || jvmti == NULL) { |
61 if (res != JNI_OK || jvmti == NULL) { |
62 printf("Wrong result of a valid call to GetEnv!\n"); |
62 printf("Wrong result of a valid call to GetEnv!\n"); |
63 return JNI_ERR; |
63 return JNI_ERR; |
64 } |
64 } |
65 |
65 |
66 if ((err = (jvmti->GetCapabilities(&caps))) != JVMTI_ERROR_NONE) { |
66 err = jvmti->GetCapabilities(&caps); |
|
67 if (err != JVMTI_ERROR_NONE) { |
67 printf("(GetCapabilities) unexpected error: %s (%d)\n", |
68 printf("(GetCapabilities) unexpected error: %s (%d)\n", |
68 TranslateError(err), err); |
69 TranslateError(err), err); |
69 return JNI_ERR; |
70 return JNI_ERR; |
70 } |
71 } |
71 |
72 |