< prev index next >

src/hotspot/share/gc/g1/g1YoungRemSetSamplingThread.cpp

Print this page
rev 53920 : imported patch 8218880-g1-crashes-periodic-gc-gclocker

*** 87,97 **** return; } if ((os::elapsedTime() - _last_periodic_gc_attempt_s) > (G1PeriodicGCInterval / 1000.0)) { log_debug(gc, periodic)("Checking for periodic GC."); if (should_start_periodic_gc()) { ! Universe::heap()->collect(GCCause::_g1_periodic_collection); } _last_periodic_gc_attempt_s = os::elapsedTime(); } } --- 87,99 ---- return; } if ((os::elapsedTime() - _last_periodic_gc_attempt_s) > (G1PeriodicGCInterval / 1000.0)) { log_debug(gc, periodic)("Checking for periodic GC."); if (should_start_periodic_gc()) { ! if (!G1CollectedHeap::heap()->attempt_collect(GCCause::_g1_periodic_collection, false)) { ! log_debug(gc, periodic)("GC request denied. Skipping."); ! } } _last_periodic_gc_attempt_s = os::elapsedTime(); } }
< prev index next >