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