src/hotspot/share/jfr/periodic/sampling/jfrThreadSampler.cpp
changeset 54645 05aaccf7d558
parent 54623 1126f0607c70
child 55267 eabe64456156
child 58678 9cf78a70fa4f
equal deleted inserted replaced
54644:8d52b4c6f9d8 54645:05aaccf7d558
   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