Print this page
8236073: G1: Use SoftMaxHeapSize to guide GC heuristics

Split Close
Expand all
Collapse all
          --- old/src/hotspot/share/gc/g1/g1Policy.hpp
          +++ new/src/hotspot/share/gc/g1/g1Policy.hpp
↓ open down ↓ 37 lines elided ↑ open up ↑
  38   38  
  39   39  // A G1Policy makes policy decisions that determine the
  40   40  // characteristics of the collector.  Examples include:
  41   41  //   * choice of collection set.
  42   42  //   * when to collect.
  43   43  
  44   44  class HeapRegion;
  45   45  class G1CollectionSet;
  46   46  class G1CollectionSetCandidates;
  47   47  class G1CollectionSetChooser;
       48 +class G1HeapSizingPolicy;
  48   49  class G1IHOPControl;
  49   50  class G1Analytics;
  50   51  class G1SurvivorRegions;
  51   52  class G1YoungGenSizer;
  52   53  class GCPolicyCounters;
  53   54  class STWGCTimer;
  54   55  
  55   56  class G1Policy: public CHeapObj<mtGC> {
       57 + friend class G1HeapSizingPolicy;
  56   58   private:
  57   59  
  58   60    static G1IHOPControl* create_ihop_control(const G1Predictions* predictor);
  59   61    // Update the IHOP control with necessary statistics.
  60   62    void update_ihop_prediction(double mutator_time_s,
  61   63                                size_t mutator_alloc_bytes,
  62   64                                size_t young_gen_size,
  63   65                                bool this_gc_was_young_only);
  64   66    void report_ihop_statistics();
  65   67  
↓ open down ↓ 384 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX