test/hotspot/jtreg/vmTestbase/nsk/jvmti/scenarios/contention/TC02/tc02t001/tc02t001.cpp
--- a/test/hotspot/jtreg/vmTestbase/nsk/jvmti/scenarios/contention/TC02/tc02t001/tc02t001.cpp Wed Nov 21 18:44:11 2018 +0000
+++ b/test/hotspot/jtreg/vmTestbase/nsk/jvmti/scenarios/contention/TC02/tc02t001/tc02t001.cpp Wed Nov 21 10:46:45 2018 -0800
@@ -108,7 +108,8 @@
if (jni->IsSameObject(thread, thr) &&
jni->IsSameObject(object_M, obj)) {
- if (!(line = findLineNumber(jvmti, thread))) {
+ line = findLineNumber(jvmti, thread);
+ if (!line) {
nsk_jvmti_setFailStatus();
NSK_COMPLAIN2("MonitorContendedEnter event: thread=%p, object=%p\n",
thr, obj);
@@ -152,7 +153,8 @@
if (jni->IsSameObject(thread, thr) &&
jni->IsSameObject(object_M, obj)) {
- if (!(line = findLineNumber(jvmti, thread))) {
+ line = findLineNumber(jvmti, thread);
+ if (!line) {
nsk_jvmti_setFailStatus();
NSK_COMPLAIN2("MonitorContendedEntered event: thread=%p, object=%p\n",
thr, obj);