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