// Accessors
 unsigned allocating_threads_avg() {
   return MAX2((unsigned)(_allocating_threads_avg.average() + 0.5), 1U);
 }
예제 #2
0
 // Cost of STW mark-sweep-compact tenured gen collection.
 double msc_gc_cost() const {
   return MAX2(0.0F, _avg_msc_gc_cost->average());
 }
 // Average interval between major collections to be used
 // in calculating the decaying major gc cost.  An overestimate
 // of this time would be a conservative estimate because
 // this time is used to decide if the major GC cost
 // should be decayed (i.e., if the time since the last
 // major gc is long compared to the time returned here,
 // then the major GC cost will be decayed).  See the
 // implementations for the specifics.
 virtual double major_gc_interval_average_for_decay() const {
   return _avg_major_interval->average();
 }
  double minor_gc_cost() const {
return MAX2(0.0,_avg_minor_gc_cost->average());
  }
 size_t average_old_live_in_bytes() const {
   return (size_t) _avg_old_live->average();
 }
 // Footprint accessors
 size_t live_space() const { 
   return _avg_base_footprint->average() +
          _avg_young_live->average() +
          _avg_old_live->average();  
 }