@@ -172,32 +172,32 @@ void G1Analytics::report_dirtied_cards_rate_ms(double cards_per_ms) {
172
172
_dirtied_cards_rate_ms_seq->add (cards_per_ms);
173
173
}
174
174
175
- void G1Analytics::report_cost_per_card_scan_ms (double cost_per_card_ms, bool for_young_gc ) {
176
- if (for_young_gc ) {
175
+ void G1Analytics::report_cost_per_card_scan_ms (double cost_per_card_ms, bool for_young_only_phase ) {
176
+ if (for_young_only_phase ) {
177
177
_young_cost_per_card_scan_ms_seq->add (cost_per_card_ms);
178
178
} else {
179
179
_mixed_cost_per_card_scan_ms_seq->add (cost_per_card_ms);
180
180
}
181
181
}
182
182
183
- void G1Analytics::report_cost_per_card_merge_ms (double cost_per_card_ms, bool for_young_gc ) {
184
- if (for_young_gc ) {
183
+ void G1Analytics::report_cost_per_card_merge_ms (double cost_per_card_ms, bool for_young_only_phase ) {
184
+ if (for_young_only_phase ) {
185
185
_young_cost_per_card_merge_ms_seq->add (cost_per_card_ms);
186
186
} else {
187
187
_mixed_cost_per_card_merge_ms_seq->add (cost_per_card_ms);
188
188
}
189
189
}
190
190
191
- void G1Analytics::report_card_merge_to_scan_ratio (double merge_to_scan_ratio, bool for_young_gc ) {
192
- if (for_young_gc ) {
191
+ void G1Analytics::report_card_merge_to_scan_ratio (double merge_to_scan_ratio, bool for_young_only_phase ) {
192
+ if (for_young_only_phase ) {
193
193
_young_card_merge_to_scan_ratio_seq->add (merge_to_scan_ratio);
194
194
} else {
195
195
_mixed_card_merge_to_scan_ratio_seq->add (merge_to_scan_ratio);
196
196
}
197
197
}
198
198
199
- void G1Analytics::report_rs_length_diff (double rs_length_diff, bool for_young_gc ) {
200
- if (for_young_gc ) {
199
+ void G1Analytics::report_rs_length_diff (double rs_length_diff, bool for_young_only_phase ) {
200
+ if (for_young_only_phase ) {
201
201
_young_rs_length_diff_seq->add (rs_length_diff);
202
202
} else {
203
203
_mixed_rs_length_diff_seq->add (rs_length_diff);
@@ -224,16 +224,16 @@ void G1Analytics::report_constant_other_time_ms(double constant_other_time_ms) {
224
224
_constant_other_time_ms_seq->add (constant_other_time_ms);
225
225
}
226
226
227
- void G1Analytics::report_pending_cards (double pending_cards, bool for_young_gc ) {
228
- if (for_young_gc ) {
227
+ void G1Analytics::report_pending_cards (double pending_cards, bool for_young_only_phase ) {
228
+ if (for_young_only_phase ) {
229
229
_young_pending_cards_seq->add (pending_cards);
230
230
} else {
231
231
_mixed_pending_cards_seq->add (pending_cards);
232
232
}
233
233
}
234
234
235
- void G1Analytics::report_rs_length (double rs_length, bool for_young_gc ) {
236
- if (for_young_gc ) {
235
+ void G1Analytics::report_rs_length (double rs_length, bool for_young_only_phase ) {
236
+ if (for_young_only_phase ) {
237
237
_young_rs_length_seq->add (rs_length);
238
238
} else {
239
239
_mixed_rs_length_seq->add (rs_length);
@@ -256,24 +256,24 @@ double G1Analytics::predict_dirtied_cards_rate_ms() const {
256
256
return predict_zero_bounded (_dirtied_cards_rate_ms_seq);
257
257
}
258
258
259
- size_t G1Analytics::predict_scan_card_num (size_t rs_length, bool for_young_gc ) const {
260
- if (for_young_gc || !enough_samples_available (_mixed_card_merge_to_scan_ratio_seq)) {
259
+ size_t G1Analytics::predict_scan_card_num (size_t rs_length, bool for_young_only_phase ) const {
260
+ if (for_young_only_phase || !enough_samples_available (_mixed_card_merge_to_scan_ratio_seq)) {
261
261
return (size_t )(rs_length * predict_in_unit_interval (_young_card_merge_to_scan_ratio_seq));
262
262
} else {
263
263
return (size_t )(rs_length * predict_in_unit_interval (_mixed_card_merge_to_scan_ratio_seq));
264
264
}
265
265
}
266
266
267
- double G1Analytics::predict_card_merge_time_ms (size_t card_num, bool for_young_gc ) const {
268
- if (for_young_gc || !enough_samples_available (_mixed_cost_per_card_merge_ms_seq)) {
267
+ double G1Analytics::predict_card_merge_time_ms (size_t card_num, bool for_young_only_phase ) const {
268
+ if (for_young_only_phase || !enough_samples_available (_mixed_cost_per_card_merge_ms_seq)) {
269
269
return card_num * predict_zero_bounded (_young_cost_per_card_merge_ms_seq);
270
270
} else {
271
271
return card_num * predict_zero_bounded (_mixed_cost_per_card_merge_ms_seq);
272
272
}
273
273
}
274
274
275
- double G1Analytics::predict_card_scan_time_ms (size_t card_num, bool for_young_gc ) const {
276
- if (for_young_gc || !enough_samples_available (_mixed_cost_per_card_scan_ms_seq)) {
275
+ double G1Analytics::predict_card_scan_time_ms (size_t card_num, bool for_young_only_phase ) const {
276
+ if (for_young_only_phase || !enough_samples_available (_mixed_cost_per_card_scan_ms_seq)) {
277
277
return card_num * predict_zero_bounded (_young_cost_per_card_scan_ms_seq);
278
278
} else {
279
279
return card_num * predict_zero_bounded (_mixed_cost_per_card_scan_ms_seq);
@@ -316,16 +316,16 @@ double G1Analytics::predict_cleanup_time_ms() const {
316
316
return predict_zero_bounded (_concurrent_mark_cleanup_times_ms);
317
317
}
318
318
319
- size_t G1Analytics::predict_rs_length (bool for_young_gc ) const {
320
- if (for_young_gc || !enough_samples_available (_mixed_rs_length_seq)) {
319
+ size_t G1Analytics::predict_rs_length (bool for_young_only_phase ) const {
320
+ if (for_young_only_phase || !enough_samples_available (_mixed_rs_length_seq)) {
321
321
return predict_size (_young_rs_length_seq) + predict_size (_young_rs_length_diff_seq);
322
322
} else {
323
323
return predict_size (_mixed_rs_length_seq) + predict_size (_mixed_rs_length_diff_seq);
324
324
}
325
325
}
326
326
327
- size_t G1Analytics::predict_pending_cards (bool for_young_gc ) const {
328
- if (for_young_gc || !enough_samples_available (_mixed_pending_cards_seq)) {
327
+ size_t G1Analytics::predict_pending_cards (bool for_young_only_phase ) const {
328
+ if (for_young_only_phase || !enough_samples_available (_mixed_pending_cards_seq)) {
329
329
return predict_size (_young_pending_cards_seq);
330
330
} else {
331
331
return predict_size (_mixed_pending_cards_seq);
0 commit comments