equal
deleted
inserted
replaced
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(); |