test/hotspot/jtreg/vmTestbase/nsk/jvmti/scenarios/contention/TC02/tc02t001/tc02t001.cpp
equal
deleted
inserted
replaced
106 |
106 |
107 /* check if event is for tested thread and object */ |
107 /* check if event is for tested thread and object */ |
108 if (jni->IsSameObject(thread, thr) && |
108 if (jni->IsSameObject(thread, thr) && |
109 jni->IsSameObject(object_M, obj)) { |
109 jni->IsSameObject(object_M, obj)) { |
110 |
110 |
111 if (!(line = findLineNumber(jvmti, thread))) { |
111 line = findLineNumber(jvmti, thread); |
|
112 if (!line) { |
112 nsk_jvmti_setFailStatus(); |
113 nsk_jvmti_setFailStatus(); |
113 NSK_COMPLAIN2("MonitorContendedEnter event: thread=%p, object=%p\n", |
114 NSK_COMPLAIN2("MonitorContendedEnter event: thread=%p, object=%p\n", |
114 thr, obj); |
115 thr, obj); |
115 return; |
116 return; |
116 } |
117 } |
150 |
151 |
151 /* check if event is for tested thread and object */ |
152 /* check if event is for tested thread and object */ |
152 if (jni->IsSameObject(thread, thr) && |
153 if (jni->IsSameObject(thread, thr) && |
153 jni->IsSameObject(object_M, obj)) { |
154 jni->IsSameObject(object_M, obj)) { |
154 |
155 |
155 if (!(line = findLineNumber(jvmti, thread))) { |
156 line = findLineNumber(jvmti, thread); |
|
157 if (!line) { |
156 nsk_jvmti_setFailStatus(); |
158 nsk_jvmti_setFailStatus(); |
157 NSK_COMPLAIN2("MonitorContendedEntered event: thread=%p, object=%p\n", |
159 NSK_COMPLAIN2("MonitorContendedEntered event: thread=%p, object=%p\n", |
158 thr, obj); |
160 thr, obj); |
159 return; |
161 return; |
160 } |
162 } |