src/hotspot/share/gc/g1/g1ConcurrentRefineThread.cpp
changeset 54645 05aaccf7d558
parent 54623 1126f0607c70
child 57507 f6b30bd6804e
child 58678 9cf78a70fa4f
equal deleted inserted replaced
54644:8d52b4c6f9d8 54645:05aaccf7d558
    57   set_name("G1 Refine#%d", worker_id);
    57   set_name("G1 Refine#%d", worker_id);
    58   create_and_start();
    58   create_and_start();
    59 }
    59 }
    60 
    60 
    61 void G1ConcurrentRefineThread::wait_for_completed_buffers() {
    61 void G1ConcurrentRefineThread::wait_for_completed_buffers() {
    62   MutexLocker x(_monitor, Mutex::_no_safepoint_check_flag);
    62   MonitorLocker ml(_monitor, Mutex::_no_safepoint_check_flag);
    63   while (!should_terminate() && !is_active()) {
    63   while (!should_terminate() && !is_active()) {
    64     _monitor->wait_without_safepoint_check();
    64     ml.wait();
    65   }
    65   }
    66 }
    66 }
    67 
    67 
    68 bool G1ConcurrentRefineThread::is_active() {
    68 bool G1ConcurrentRefineThread::is_active() {
    69   G1DirtyCardQueueSet& dcqs = G1BarrierSet::dirty_card_queue_set();
    69   G1DirtyCardQueueSet& dcqs = G1BarrierSet::dirty_card_queue_set();