src/share/vm/gc_implementation/parallelScavenge/psGCAdaptivePolicyCounters.hpp

Print this page




 102   inline void update_avg_promoted_padded_avg() {
 103     _avg_promoted_padded_avg_counter->set_value(
 104       (jlong)(ps_size_policy()->avg_promoted()->padded_average())
 105     );
 106   }
 107 
 108   inline void update_avg_pretenured_padded_avg() {
 109     _avg_pretenured_padded_avg->set_value(
 110       (jlong)(ps_size_policy()->_avg_pretenured->padded_average())
 111     );
 112   }
 113   inline void update_change_young_gen_for_maj_pauses() {
 114     _change_young_gen_for_maj_pauses_counter->set_value(
 115       ps_size_policy()->change_young_gen_for_maj_pauses());
 116   }
 117   inline void update_change_old_gen_for_min_pauses() {
 118     _change_old_gen_for_min_pauses->set_value(
 119       ps_size_policy()->change_old_gen_for_min_pauses());
 120   }
 121 
 122   // compute_generation_free_space() statistics
 123 
 124   inline void update_avg_major_pause() {
 125     _avg_major_pause->set_value(
 126       (jlong)(ps_size_policy()->_avg_major_pause->average() * 1000.0)
 127     );
 128   }
 129   inline void update_avg_major_interval() {
 130     _avg_major_interval->set_value(
 131       (jlong)(ps_size_policy()->_avg_major_interval->average() * 1000.0)
 132     );
 133   }
 134 
 135   inline void update_major_gc_cost_counter() {
 136     _major_gc_cost_counter->set_value(
 137       (jlong)(ps_size_policy()->major_gc_cost() * 100.0)
 138     );
 139   }
 140   inline void update_mutator_cost_counter() {
 141     _mutator_cost_counter->set_value(
 142       (jlong)(ps_size_policy()->mutator_cost() * 100.0)




 102   inline void update_avg_promoted_padded_avg() {
 103     _avg_promoted_padded_avg_counter->set_value(
 104       (jlong)(ps_size_policy()->avg_promoted()->padded_average())
 105     );
 106   }
 107 
 108   inline void update_avg_pretenured_padded_avg() {
 109     _avg_pretenured_padded_avg->set_value(
 110       (jlong)(ps_size_policy()->_avg_pretenured->padded_average())
 111     );
 112   }
 113   inline void update_change_young_gen_for_maj_pauses() {
 114     _change_young_gen_for_maj_pauses_counter->set_value(
 115       ps_size_policy()->change_young_gen_for_maj_pauses());
 116   }
 117   inline void update_change_old_gen_for_min_pauses() {
 118     _change_old_gen_for_min_pauses->set_value(
 119       ps_size_policy()->change_old_gen_for_min_pauses());
 120   }
 121 
 122   // compute_generations_free_space() statistics
 123 
 124   inline void update_avg_major_pause() {
 125     _avg_major_pause->set_value(
 126       (jlong)(ps_size_policy()->_avg_major_pause->average() * 1000.0)
 127     );
 128   }
 129   inline void update_avg_major_interval() {
 130     _avg_major_interval->set_value(
 131       (jlong)(ps_size_policy()->_avg_major_interval->average() * 1000.0)
 132     );
 133   }
 134 
 135   inline void update_major_gc_cost_counter() {
 136     _major_gc_cost_counter->set_value(
 137       (jlong)(ps_size_policy()->major_gc_cost() * 100.0)
 138     );
 139   }
 140   inline void update_mutator_cost_counter() {
 141     _mutator_cost_counter->set_value(
 142       (jlong)(ps_size_policy()->mutator_cost() * 100.0)