equal
deleted
inserted
replaced
393 |
393 |
394 void JfrThreadSampler::on_javathread_suspend(JavaThread* thread) { |
394 void JfrThreadSampler::on_javathread_suspend(JavaThread* thread) { |
395 JfrThreadLocal* const tl = thread->jfr_thread_local(); |
395 JfrThreadLocal* const tl = thread->jfr_thread_local(); |
396 tl->set_trace_block(); |
396 tl->set_trace_block(); |
397 { |
397 { |
398 MutexLocker ml(transition_block(), Mutex::_no_safepoint_check_flag); |
398 MonitorLocker ml(transition_block(), Mutex::_no_safepoint_check_flag); |
399 while (thread->is_trace_suspend()) { |
399 while (thread->is_trace_suspend()) { |
400 transition_block()->wait_without_safepoint_check(); |
400 ml.wait(); |
401 } |
401 } |
402 tl->clear_trace_block(); |
402 tl->clear_trace_block(); |
403 } |
403 } |
404 } |
404 } |
405 |
405 |