--- old/src/hotspot/share/gc/shared/referenceProcessorPhaseTimes.cpp 2019-11-21 11:53:05.026850101 +0100 +++ new/src/hotspot/share/gc/shared/referenceProcessorPhaseTimes.cpp 2019-11-21 11:53:04.774845985 +0100 @@ -246,7 +246,7 @@ void ReferenceProcessorPhaseTimes::add_ref_cleared(ReferenceType ref_type, size_t count) { ASSERT_REF_TYPE(ref_type); - Atomic::add(count, &_ref_cleared[ref_type_2_index(ref_type)]); + Atomic::add(&_ref_cleared[ref_type_2_index(ref_type)], count); } void ReferenceProcessorPhaseTimes::set_ref_discovered(ReferenceType ref_type, size_t count) {