hotspot/src/share/vm/gc/g1/g1RemSetSummary.cpp
changeset 34299 3fdfdda0ac1f
parent 31592 43f48e165466
child 35061 be6025ebffea
equal deleted inserted replaced
34298:f3c9dcc5af96 34299:3fdfdda0ac1f
   121   for (uint i = 0; i < _num_vtimes; i++) {
   121   for (uint i = 0; i < _num_vtimes; i++) {
   122     set_rs_thread_vtime(i, other->rs_thread_vtime(i) - rs_thread_vtime(i));
   122     set_rs_thread_vtime(i, other->rs_thread_vtime(i) - rs_thread_vtime(i));
   123   }
   123   }
   124 
   124 
   125   _sampling_thread_vtime = other->sampling_thread_vtime() - _sampling_thread_vtime;
   125   _sampling_thread_vtime = other->sampling_thread_vtime() - _sampling_thread_vtime;
   126 }
       
   127 
       
   128 static double percent_of(size_t numerator, size_t denominator) {
       
   129   if (denominator != 0) {
       
   130     return (double)numerator / denominator * 100.0f;
       
   131   } else {
       
   132     return 0.0f;
       
   133   }
       
   134 }
   126 }
   135 
   127 
   136 static size_t round_to_K(size_t value) {
   128 static size_t round_to_K(size_t value) {
   137   return value / K;
   129   return value / K;
   138 }
   130 }