src/hotspot/share/gc/shared/preservedMarks.cpp
changeset 59249 29b0d0b61615
parent 57777 90ead0febf56
child 59290 97d13893ec3c
--- a/src/hotspot/share/gc/shared/preservedMarks.cpp	Mon Nov 25 12:30:24 2019 +0100
+++ b/src/hotspot/share/gc/shared/preservedMarks.cpp	Mon Nov 25 12:31:39 2019 +0100
@@ -55,7 +55,7 @@
   restore();
   // Only do the atomic add if the size is > 0.
   if (stack_size > 0) {
-    Atomic::add(stack_size, total_size_addr);
+    Atomic::add(total_size_addr, stack_size);
   }
 }