< prev index next >

src/share/vm/gc/shared/referenceProcessorPhaseTimes.cpp

Print this page




 255     _ref_proc_time_ms[i] = uninitialized();
 256     _balance_queues_time_ms[i] = uninitialized();
 257     _ref_cleared[i] = 0;
 258     _ref_discovered[i] = 0;
 259     _ref_enqueued[i] = 0;
 260   }
 261 
 262   _total_time_ms = uninitialized();
 263 
 264   _processing_is_mt = false;
 265 }
 266 
 267 ReferenceProcessorPhaseTimes::~ReferenceProcessorPhaseTimes() {
 268   for (int i = 0; i < RefParPhaseMax; i++) {
 269     delete _worker_time_sec[i];
 270   }
 271 }
 272 
 273 double ReferenceProcessorPhaseTimes::ref_proc_time_ms(ReferenceType ref_type) const {
 274   ASSERT_REF_TYPE(ref_type);
 275   return _par_phase_time_ms[ref_type_2_index(ref_type)];
 276 }
 277 
 278 void ReferenceProcessorPhaseTimes::set_ref_proc_time_ms(ReferenceType ref_type,
 279                                                         double ref_proc_time_ms) {
 280   ASSERT_REF_TYPE(ref_type);
 281   _ref_proc_time_ms[ref_type_2_index(ref_type)] = ref_proc_time_ms;
 282 }
 283 
 284 size_t ReferenceProcessorPhaseTimes::ref_cleared(ReferenceType ref_type) const {
 285   ASSERT_REF_TYPE(ref_type);
 286   return _ref_cleared[ref_type_2_index(ref_type)];
 287 }
 288 
 289 void ReferenceProcessorPhaseTimes::set_ref_cleared(ReferenceType ref_type, size_t count) {
 290   ASSERT_REF_TYPE(ref_type);
 291   _ref_cleared[ref_type_2_index(ref_type)] = count;
 292 }
 293 
 294 size_t ReferenceProcessorPhaseTimes::ref_discovered(ReferenceType ref_type) const {
 295   ASSERT_REF_TYPE(ref_type);




 255     _ref_proc_time_ms[i] = uninitialized();
 256     _balance_queues_time_ms[i] = uninitialized();
 257     _ref_cleared[i] = 0;
 258     _ref_discovered[i] = 0;
 259     _ref_enqueued[i] = 0;
 260   }
 261 
 262   _total_time_ms = uninitialized();
 263 
 264   _processing_is_mt = false;
 265 }
 266 
 267 ReferenceProcessorPhaseTimes::~ReferenceProcessorPhaseTimes() {
 268   for (int i = 0; i < RefParPhaseMax; i++) {
 269     delete _worker_time_sec[i];
 270   }
 271 }
 272 
 273 double ReferenceProcessorPhaseTimes::ref_proc_time_ms(ReferenceType ref_type) const {
 274   ASSERT_REF_TYPE(ref_type);
 275   return _ref_proc_time_ms[ref_type_2_index(ref_type)];
 276 }
 277 
 278 void ReferenceProcessorPhaseTimes::set_ref_proc_time_ms(ReferenceType ref_type,
 279                                                         double ref_proc_time_ms) {
 280   ASSERT_REF_TYPE(ref_type);
 281   _ref_proc_time_ms[ref_type_2_index(ref_type)] = ref_proc_time_ms;
 282 }
 283 
 284 size_t ReferenceProcessorPhaseTimes::ref_cleared(ReferenceType ref_type) const {
 285   ASSERT_REF_TYPE(ref_type);
 286   return _ref_cleared[ref_type_2_index(ref_type)];
 287 }
 288 
 289 void ReferenceProcessorPhaseTimes::set_ref_cleared(ReferenceType ref_type, size_t count) {
 290   ASSERT_REF_TYPE(ref_type);
 291   _ref_cleared[ref_type_2_index(ref_type)] = count;
 292 }
 293 
 294 size_t ReferenceProcessorPhaseTimes::ref_discovered(ReferenceType ref_type) const {
 295   ASSERT_REF_TYPE(ref_type);


< prev index next >