equal
deleted
inserted
replaced
336 if (!scan_in_progress()) { |
336 if (!scan_in_progress()) { |
337 return false; |
337 return false; |
338 } |
338 } |
339 |
339 |
340 { |
340 { |
341 MutexLocker x(RootRegionScan_lock, Mutex::_no_safepoint_check_flag); |
341 MonitorLocker ml(RootRegionScan_lock, Mutex::_no_safepoint_check_flag); |
342 while (scan_in_progress()) { |
342 while (scan_in_progress()) { |
343 RootRegionScan_lock->wait_without_safepoint_check(); |
343 ml.wait(); |
344 } |
344 } |
345 } |
345 } |
346 return true; |
346 return true; |
347 } |
347 } |
348 |
348 |