diff -r 0c637249d934 -r f94c7929a44b src/hotspot/share/gc/g1/g1YoungRemSetSamplingThread.hpp --- a/src/hotspot/share/gc/g1/g1YoungRemSetSamplingThread.hpp Mon Dec 10 09:37:18 2018 +0100 +++ b/src/hotspot/share/gc/g1/g1YoungRemSetSamplingThread.hpp Mon Dec 10 10:25:27 2018 +0100 @@ -43,14 +43,20 @@ private: Monitor _monitor; + double _last_periodic_gc_attempt_s; + + double _vtime_accum; // Accumulated virtual time. + void sample_young_list_rs_lengths(); void run_service(); + void check_for_periodic_gc(); + void stop_service(); void sleep_before_next_cycle(); - double _vtime_accum; // Accumulated virtual time. + bool should_start_periodic_gc(); public: G1YoungRemSetSamplingThread();