< prev index next >

src/share/vm/gc_implementation/g1/vm_operations_g1.cpp

Print this page

        

*** 171,181 **** // If the pause was initiated by a System.gc() and // +ExplicitGCInvokesConcurrent, we have to wait here for the cycle // that just started (or maybe one that was already in progress) to // finish. ! if (_gc_cause == GCCause::_java_lang_system_gc && _should_initiate_conc_mark) { assert(ExplicitGCInvokesConcurrent, "the only way to be here is if ExplicitGCInvokesConcurrent is set"); G1CollectedHeap* g1h = G1CollectedHeap::heap(); --- 171,181 ---- // If the pause was initiated by a System.gc() and // +ExplicitGCInvokesConcurrent, we have to wait here for the cycle // that just started (or maybe one that was already in progress) to // finish. ! if (GCCause::is_user_requested_gc(_gc_cause) && _should_initiate_conc_mark) { assert(ExplicitGCInvokesConcurrent, "the only way to be here is if ExplicitGCInvokesConcurrent is set"); G1CollectedHeap* g1h = G1CollectedHeap::heap();
< prev index next >