< prev index next >
test/hotspot/jtreg/vmTestbase/nsk/jvmti/ThreadStart/threadstart002/threadstart002.cpp
Print this page
rev 52200 : [mq]: spaces
*** 143,153 ****
NSK_COMPLAIN0("[agent] failed to enter thr_start_lock\n");
}
while (terminate_debug_agent != JNI_TRUE) {
! if (next_thread == NULL ) {
/* wait till new thread will be created and started */
if (!NSK_JVMTI_VERIFY(NSK_CPP_STUB3(RawMonitorWait, jvmti, thr_start_lock, (jlong)0))) {
result = STATUS_FAILED;
NSK_COMPLAIN0("[agent] Failed while waiting thr_start_lock\n");
}
--- 143,153 ----
NSK_COMPLAIN0("[agent] failed to enter thr_start_lock\n");
}
while (terminate_debug_agent != JNI_TRUE) {
! if (next_thread == NULL) {
/* wait till new thread will be created and started */
if (!NSK_JVMTI_VERIFY(NSK_CPP_STUB3(RawMonitorWait, jvmti, thr_start_lock, (jlong)0))) {
result = STATUS_FAILED;
NSK_COMPLAIN0("[agent] Failed while waiting thr_start_lock\n");
}
*** 319,329 ****
result = STATUS_FAILED;
}
/* Wait till this started thread will be resumed by agent thread */
if (!NSK_JVMTI_VERIFY(NSK_CPP_STUB3(RawMonitorWait,
! jvmti_env, thr_resume_lock, (jlong)WAIT_TIME ))) {
NSK_COMPLAIN1("[ThreadStart hook] thread#%d failed while waiting for thr_resume_lock\n", eventsCount);
result = STATUS_FAILED;
}
if (debug_agent_timed_out == JNI_TRUE) {
--- 319,329 ----
result = STATUS_FAILED;
}
/* Wait till this started thread will be resumed by agent thread */
if (!NSK_JVMTI_VERIFY(NSK_CPP_STUB3(RawMonitorWait,
! jvmti_env, thr_resume_lock, (jlong)WAIT_TIME))) {
NSK_COMPLAIN1("[ThreadStart hook] thread#%d failed while waiting for thr_resume_lock\n", eventsCount);
result = STATUS_FAILED;
}
if (debug_agent_timed_out == JNI_TRUE) {
< prev index next >