equal
deleted
inserted
replaced
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; |