hotspot/src/share/vm/gc/g1/g1DefaultPolicy.cpp
changeset 39979 b17e445924da
parent 39698 4016de4e596b
child 40000 90441a39361d
equal deleted inserted replaced
39978:d79e47b2d2d9 39979:b17e445924da
   499   return phase_times()->average_time_ms(phase);
   499   return phase_times()->average_time_ms(phase);
   500 }
   500 }
   501 
   501 
   502 double G1DefaultPolicy::young_other_time_ms() const {
   502 double G1DefaultPolicy::young_other_time_ms() const {
   503   return phase_times()->young_cset_choice_time_ms() +
   503   return phase_times()->young_cset_choice_time_ms() +
   504          phase_times()->young_free_cset_time_ms();
   504          phase_times()->average_time_ms(G1GCPhaseTimes::YoungFreeCSet);
   505 }
   505 }
   506 
   506 
   507 double G1DefaultPolicy::non_young_other_time_ms() const {
   507 double G1DefaultPolicy::non_young_other_time_ms() const {
   508   return phase_times()->non_young_cset_choice_time_ms() +
   508   return phase_times()->non_young_cset_choice_time_ms() +
   509          phase_times()->non_young_free_cset_time_ms();
   509          phase_times()->average_time_ms(G1GCPhaseTimes::NonYoungFreeCSet);
   510 
       
   511 }
   510 }
   512 
   511 
   513 double G1DefaultPolicy::other_time_ms(double pause_time_ms) const {
   512 double G1DefaultPolicy::other_time_ms(double pause_time_ms) const {
   514   return pause_time_ms - phase_times()->cur_collection_par_time_ms();
   513   return pause_time_ms - phase_times()->cur_collection_par_time_ms();
   515 }
   514 }
   516 
   515 
   517 double G1DefaultPolicy::constant_other_time_ms(double pause_time_ms) const {
   516 double G1DefaultPolicy::constant_other_time_ms(double pause_time_ms) const {
   518   return other_time_ms(pause_time_ms) - young_other_time_ms() - non_young_other_time_ms();
   517   return other_time_ms(pause_time_ms) - phase_times()->total_free_cset_time_ms();
   519 }
   518 }
   520 
   519 
   521 CollectionSetChooser* G1DefaultPolicy::cset_chooser() const {
   520 CollectionSetChooser* G1DefaultPolicy::cset_chooser() const {
   522   return _collection_set->cset_chooser();
   521   return _collection_set->cset_chooser();
   523 }
   522 }