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

Split Close
Expand all
Collapse all
          --- old/src/hotspot/share/gc/g1/g1HeapSizingPolicy.hpp
          +++ new/src/hotspot/share/gc/g1/g1HeapSizingPolicy.hpp
↓ open down ↓ 49 lines elided ↑ open up ↑
  50   50    G1HeapSizingPolicy(const G1CollectedHeap* g1h, const G1Analytics* analytics);
  51   51  public:
  52   52  
  53   53    // If an expansion would be appropriate, because recent GC overhead had
  54   54    // exceeded the desired limit, return an amount to expand by.
  55   55    virtual size_t expansion_amount();
  56   56  
  57   57    // Clear ratio tracking data used by expansion_amount().
  58   58    void clear_ratio_check_data();
  59   59  
       60 +  // Check if heap size can be shrinked
       61 +  bool can_shrink_heap_size_to(size_t heap_size);
       62 +
  60   63    static G1HeapSizingPolicy* create(const G1CollectedHeap* g1h, const G1Analytics* analytics);
  61   64  };
  62   65  
  63   66  #endif // SHARE_GC_G1_G1HEAPSIZINGPOLICY_HPP
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX