src/hotspot/share/gc/shared/referenceProcessorPhaseTimes.cpp
changeset 59249 29b0d0b61615
parent 51332 c25572739e7c
child 59290 97d13893ec3c
equal deleted inserted replaced
59248:e92153ed8bdc 59249:29b0d0b61615
   244   _sub_phases_total_time_ms[sub_phase] = time_ms;
   244   _sub_phases_total_time_ms[sub_phase] = time_ms;
   245 }
   245 }
   246 
   246 
   247 void ReferenceProcessorPhaseTimes::add_ref_cleared(ReferenceType ref_type, size_t count) {
   247 void ReferenceProcessorPhaseTimes::add_ref_cleared(ReferenceType ref_type, size_t count) {
   248   ASSERT_REF_TYPE(ref_type);
   248   ASSERT_REF_TYPE(ref_type);
   249   Atomic::add(count, &_ref_cleared[ref_type_2_index(ref_type)]);
   249   Atomic::add(&_ref_cleared[ref_type_2_index(ref_type)], count);
   250 }
   250 }
   251 
   251 
   252 void ReferenceProcessorPhaseTimes::set_ref_discovered(ReferenceType ref_type, size_t count) {
   252 void ReferenceProcessorPhaseTimes::set_ref_discovered(ReferenceType ref_type, size_t count) {
   253   ASSERT_REF_TYPE(ref_type);
   253   ASSERT_REF_TYPE(ref_type);
   254   _ref_discovered[ref_type_2_index(ref_type)] = count;
   254   _ref_discovered[ref_type_2_index(ref_type)] = count;