src/hotspot/share/gc/g1/g1YoungRemSetSamplingThread.hpp
changeset 52918 f94c7929a44b
parent 47216 71c04702a3d5
child 53244 9807daeb47c4
--- 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();