src/hotspot/share/gc/g1/g1ConcurrentMark.cpp
changeset 54645 05aaccf7d558
parent 54623 1126f0607c70
child 54786 ebf733a324d4
equal deleted inserted replaced
54644:8d52b4c6f9d8 54645:05aaccf7d558
   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