--- old/src/share/vm/gc/g1/g1IHOPControl.cpp 2015-11-23 11:27:01.934404085 +0100 +++ new/src/share/vm/gc/g1/g1IHOPControl.cpp 2015-11-23 11:27:01.844401479 +0100 @@ -115,6 +115,7 @@ size_t heap_waste_percent) : G1IHOPControl(ihop_percent, initial_target_occupancy), _predictor(predictor), + // A sigma of 0.95 favors more recent samples. _marking_times_s(10, 0.95), _allocation_rate_s(10, 0.95), _last_unrestrained_young_size(0), @@ -145,10 +146,6 @@ ((size_t)_allocation_rate_s.num() >= G1AdaptiveIHOPNumInitialSamples); } -void G1AdaptiveIHOPControl::set_target_occupancy(size_t target_occupancy) { - _target_occupancy = target_occupancy; -} - size_t G1AdaptiveIHOPControl::get_conc_mark_start_threshold() { if (have_enough_data_for_prediction()) { double pred_marking_time = _predictor->get_new_prediction(&_marking_times_s); --- old/src/share/vm/gc/g1/g1IHOPControl.hpp 2015-11-23 11:27:02.444418851 +0100 +++ new/src/share/vm/gc/g1/g1IHOPControl.hpp 2015-11-23 11:27:02.353416216 +0100 @@ -106,7 +106,7 @@ size_t _heap_reserve_percent; // Percentage of maximum heap capacity we should avoid to touch size_t _heap_waste_percent; // Percentage of free heap that should be considered as waste. - G1Predictions const * _predictor; + const G1Predictions * _predictor; TruncatedSeq _marking_times_s; TruncatedSeq _allocation_rate_s; @@ -136,8 +136,6 @@ size_t heap_reserve_percent, // The percentage of total heap capacity that should not be tapped into. size_t heap_waste_percent); // The percentage of the free space in the heap that we think is not usable for allocation. - virtual void set_target_occupancy(size_t target_occupancy); - virtual size_t get_conc_mark_start_threshold(); virtual void update_allocation_info(double allocation_time_s, size_t allocated_bytes, size_t additional_buffer_size);