< prev index next >

src/hotspot/share/gc/g1/g1HeapSizingPolicy.hpp

Print this page
rev 59304 : [mq]: 8245087-kim-sjohanss-review

*** 43,60 **** // Ratio check data for determining if heap growth is necessary. uint _ratio_over_threshold_count; double _ratio_over_threshold_sum; uint _pauses_since_start; - protected: G1HeapSizingPolicy(const G1CollectedHeap* g1h, const G1Analytics* analytics); public: // If an expansion would be appropriate, because recent GC overhead had // exceeded the desired limit, return an amount to expand by. ! virtual size_t expansion_amount(); // Clear ratio tracking data used by expansion_amount(). void clear_ratio_check_data(); static G1HeapSizingPolicy* create(const G1CollectedHeap* g1h, const G1Analytics* analytics); --- 43,62 ---- // Ratio check data for determining if heap growth is necessary. uint _ratio_over_threshold_count; double _ratio_over_threshold_sum; uint _pauses_since_start; + // Scale "full" gc pause time threshold with heap size as we want to resize more + // eagerly at small heap sizes. + double scale_with_heap(double pause_time_threshold); G1HeapSizingPolicy(const G1CollectedHeap* g1h, const G1Analytics* analytics); public: // If an expansion would be appropriate, because recent GC overhead had // exceeded the desired limit, return an amount to expand by. ! size_t expansion_amount(); // Clear ratio tracking data used by expansion_amount(). void clear_ratio_check_data(); static G1HeapSizingPolicy* create(const G1CollectedHeap* g1h, const G1Analytics* analytics);
< prev index next >