< prev index next >

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

Print this page
rev 53920 : imported patch 8218880-g1-crashes-periodic-gc-gclocker
rev 53922 : [mq]: 8218880-kbarrett-review

*** 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()) { ! if (!G1CollectedHeap::heap()->attempt_collect(GCCause::_g1_periodic_collection, false /* retry_on_vmop_failure */)) { log_debug(gc, periodic)("GC request denied. Skipping."); } } _last_periodic_gc_attempt_s = os::elapsedTime(); --- 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()) { ! if (!G1CollectedHeap::heap()->try_collect(GCCause::_g1_periodic_collection, false /* retry_on_vmop_failure */)) { log_debug(gc, periodic)("GC request denied. Skipping."); } } _last_periodic_gc_attempt_s = os::elapsedTime();
< prev index next >