164
165 double predict_yg_surv_rate(int age) const;
166
167 double accum_yg_surv_rate_pred(int age) const;
168
169 private:
170 G1CollectionSet* _collection_set;
171 double average_time_ms(G1GCPhaseTimes::GCParPhases phase) const;
172 double other_time_ms(double pause_time_ms) const;
173
174 double young_other_time_ms() const;
175 double non_young_other_time_ms() const;
176 double constant_other_time_ms(double pause_time_ms) const;
177
178 CollectionSetChooser* cset_chooser() const;
179
180 // The number of bytes copied during the GC.
181 size_t _bytes_copied_during_gc;
182
183 // Stash a pointer to the g1 heap.
184 G1CollectedHeap* _g1;
185
186 G1GCPhaseTimes* _phase_times;
187
188 // This set of variables tracks the collector efficiency, in order to
189 // determine whether we should initiate a new marking.
190 double _mark_remark_start_sec;
191 double _mark_cleanup_start_sec;
192
193 // Updates the internal young list maximum and target lengths. Returns the
194 // unbounded young list target length.
195 uint update_young_list_max_and_target_length();
196 uint update_young_list_max_and_target_length(size_t rs_lengths);
197
198 // Update the young list target length either by setting it to the
199 // desired fixed value or by calculating it using G1's pause
200 // prediction model. If no rs_lengths parameter is passed, predict
201 // the RS lengths using the prediction model, otherwise use the
202 // given rs_lengths as the prediction.
203 // Returns the unbounded young list target length.
204 uint update_young_list_target_length(size_t rs_lengths);
|
164
165 double predict_yg_surv_rate(int age) const;
166
167 double accum_yg_surv_rate_pred(int age) const;
168
169 private:
170 G1CollectionSet* _collection_set;
171 double average_time_ms(G1GCPhaseTimes::GCParPhases phase) const;
172 double other_time_ms(double pause_time_ms) const;
173
174 double young_other_time_ms() const;
175 double non_young_other_time_ms() const;
176 double constant_other_time_ms(double pause_time_ms) const;
177
178 CollectionSetChooser* cset_chooser() const;
179
180 // The number of bytes copied during the GC.
181 size_t _bytes_copied_during_gc;
182
183 // Stash a pointer to the g1 heap.
184 G1CollectedHeap* _g1h;
185
186 G1GCPhaseTimes* _phase_times;
187
188 // This set of variables tracks the collector efficiency, in order to
189 // determine whether we should initiate a new marking.
190 double _mark_remark_start_sec;
191 double _mark_cleanup_start_sec;
192
193 // Updates the internal young list maximum and target lengths. Returns the
194 // unbounded young list target length.
195 uint update_young_list_max_and_target_length();
196 uint update_young_list_max_and_target_length(size_t rs_lengths);
197
198 // Update the young list target length either by setting it to the
199 // desired fixed value or by calculating it using G1's pause
200 // prediction model. If no rs_lengths parameter is passed, predict
201 // the RS lengths using the prediction model, otherwise use the
202 // given rs_lengths as the prediction.
203 // Returns the unbounded young list target length.
204 uint update_young_list_target_length(size_t rs_lengths);
|