src/hotspot/share/gc/shared/referenceProcessorPhaseTimes.cpp
changeset 59249 29b0d0b61615
parent 51332 c25572739e7c
child 59290 97d13893ec3c
--- a/src/hotspot/share/gc/shared/referenceProcessorPhaseTimes.cpp	Mon Nov 25 12:30:24 2019 +0100
+++ b/src/hotspot/share/gc/shared/referenceProcessorPhaseTimes.cpp	Mon Nov 25 12:31:39 2019 +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) {