src/hotspot/share/gc/g1/g1VMOperations.cpp
changeset 54645 05aaccf7d558
parent 54623 1126f0607c70
child 54786 ebf733a324d4
equal deleted inserted replaced
54644:8d52b4c6f9d8 54645:05aaccf7d558
   189       Thread* thr = Thread::current();
   189       Thread* thr = Thread::current();
   190       assert(thr->is_Java_thread(), "invariant");
   190       assert(thr->is_Java_thread(), "invariant");
   191       JavaThread* jt = (JavaThread*)thr;
   191       JavaThread* jt = (JavaThread*)thr;
   192       ThreadToNativeFromVM native(jt);
   192       ThreadToNativeFromVM native(jt);
   193 
   193 
   194       MutexLocker x(FullGCCount_lock, Mutex::_no_safepoint_check_flag);
   194       MonitorLocker ml(FullGCCount_lock, Mutex::_no_safepoint_check_flag);
   195       while (g1h->old_marking_cycles_completed() <=
   195       while (g1h->old_marking_cycles_completed() <=
   196                                           _old_marking_cycles_completed_before) {
   196                                           _old_marking_cycles_completed_before) {
   197         FullGCCount_lock->wait_without_safepoint_check();
   197         ml.wait();
   198       }
   198       }
   199     }
   199     }
   200   }
   200   }
   201 }
   201 }
   202 
   202