src/hotspot/share/gc/g1/g1YoungRemSetSamplingThread.hpp
changeset 52918 f94c7929a44b
parent 47216 71c04702a3d5
child 53244 9807daeb47c4
equal deleted inserted replaced
52917:0c637249d934 52918:f94c7929a44b
    41 // increase the young gen size to keep pause time length goal.
    41 // increase the young gen size to keep pause time length goal.
    42 class G1YoungRemSetSamplingThread: public ConcurrentGCThread {
    42 class G1YoungRemSetSamplingThread: public ConcurrentGCThread {
    43 private:
    43 private:
    44   Monitor _monitor;
    44   Monitor _monitor;
    45 
    45 
       
    46   double _last_periodic_gc_attempt_s;
       
    47 
       
    48   double _vtime_accum;  // Accumulated virtual time.
       
    49 
    46   void sample_young_list_rs_lengths();
    50   void sample_young_list_rs_lengths();
    47 
    51 
    48   void run_service();
    52   void run_service();
       
    53   void check_for_periodic_gc();
       
    54 
    49   void stop_service();
    55   void stop_service();
    50 
    56 
    51   void sleep_before_next_cycle();
    57   void sleep_before_next_cycle();
    52 
    58 
    53   double _vtime_accum;  // Accumulated virtual time.
    59   bool should_start_periodic_gc();
    54 
    60 
    55 public:
    61 public:
    56   G1YoungRemSetSamplingThread();
    62   G1YoungRemSetSamplingThread();
    57   double vtime_accum() { return _vtime_accum; }
    63   double vtime_accum() { return _vtime_accum; }
    58 };
    64 };