double predict_object_copy_time_ms(size_t bytes_to_copy) {
   if (_in_marking_window && !_in_marking_window_im) {
     return predict_object_copy_time_ms_during_cm(bytes_to_copy);
   } else {
     return (double) bytes_to_copy *
             get_new_prediction(_cost_per_byte_ms_seq);
   }
 }
 // Returns an estimate of the survival rate of the region at yg-age
 // "yg_age".
 double predict_yg_surv_rate(int age, SurvRateGroup* surv_rate_group) {
   TruncatedSeq* seq = surv_rate_group->get_seq(age);
   if (seq->num() == 0)
     gclog_or_tty->print("BARF! age is %d", age);
   guarantee( seq->num() > 0, "invariant" );
   double pred = get_new_prediction(seq);
   if (pred > 1.0)
     pred = 1.0;
   return pred;
 }
 double predict_non_young_other_time_ms(size_t non_young_num) {
   return (double) non_young_num *
          get_new_prediction(_non_young_other_cost_per_region_ms_seq);
 }
 double predict_constant_other_time_ms() {
   return get_new_prediction(_constant_other_time_ms_seq);
 }
 double predict_young_cards_per_entry_ratio() {
   return get_new_prediction(_young_cards_per_entry_ratio_seq);
 }
 double predict_cost_per_card_ms() {
   return get_new_prediction(_cost_per_card_ms_seq);
 }
 double predict_alloc_rate_ms() {
   return get_new_prediction(_alloc_rate_ms_seq);
 }
Ejemplo n.º 8
0
double G1Analytics::predict_alloc_rate_ms() const {
  return get_new_prediction(_alloc_rate_ms_seq);
}
Ejemplo n.º 9
0
double G1Analytics::predict_cleanup_time_ms() const {
  return get_new_prediction(_concurrent_mark_cleanup_times_ms);
}
Ejemplo n.º 10
0
double G1Analytics::predict_non_young_other_time_ms(size_t non_young_num) const {
  return non_young_num * get_new_prediction(_non_young_other_cost_per_region_ms_seq);
}
Ejemplo n.º 11
0
double G1Analytics::predict_constant_other_time_ms() const {
  return get_new_prediction(_constant_other_time_ms_seq);
}
Ejemplo n.º 12
0
double G1Analytics::predict_cost_per_byte_ms() const {
  return get_new_prediction(_cost_per_byte_ms_seq);
}
Ejemplo n.º 13
0
double G1Analytics::predict_young_cards_per_entry_ratio() const {
  return get_new_prediction(_young_cards_per_entry_ratio_seq);
}
Ejemplo n.º 14
0
double G1Analytics::predict_scan_hcc_ms() const {
  return get_new_prediction(_cost_scan_hcc_seq);
}
 double predict_cleanup_time_ms() {
   return get_new_prediction(_concurrent_mark_cleanup_times_ms);
 }
 size_t predict_rs_length_diff() {
   return (size_t) get_new_prediction(_rs_length_diff_seq);
 }
Ejemplo n.º 17
0
size_t G1Analytics::get_new_size_prediction(TruncatedSeq const* seq) const {
  return (size_t)get_new_prediction(seq);
}