src/hotspot/share/gc/g1/g1RootProcessor.cpp
changeset 54645 05aaccf7d558
parent 54623 1126f0607c70
child 54669 ad45b3802d4e
equal deleted inserted replaced
54644:8d52b4c6f9d8 54645:05aaccf7d558
    59   assert(ClassUnloadingWithConcurrentMark, "Currently only needed when doing G1 Class Unloading");
    59   assert(ClassUnloadingWithConcurrentMark, "Currently only needed when doing G1 Class Unloading");
    60 
    60 
    61   if ((uint)_n_workers_discovered_strong_classes != n_workers()) {
    61   if ((uint)_n_workers_discovered_strong_classes != n_workers()) {
    62     MonitorLocker ml(&_lock, Mutex::_no_safepoint_check_flag);
    62     MonitorLocker ml(&_lock, Mutex::_no_safepoint_check_flag);
    63     while ((uint)_n_workers_discovered_strong_classes != n_workers()) {
    63     while ((uint)_n_workers_discovered_strong_classes != n_workers()) {
    64       _lock.wait_without_safepoint_check(0);
    64       ml.wait(0);
    65     }
    65     }
    66   }
    66   }
    67 }
    67 }
    68 
    68 
    69 G1RootProcessor::G1RootProcessor(G1CollectedHeap* g1h, uint n_workers) :
    69 G1RootProcessor::G1RootProcessor(G1CollectedHeap* g1h, uint n_workers) :