< prev index next >

src/hotspot/share/gc/shared/preservedMarks.cpp

Print this page

        

@@ -53,11 +53,11 @@
 void PreservedMarks::restore_and_increment(volatile size_t* const total_size_addr) {
   const size_t stack_size = size();
   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);
   }
 }
 
 #ifndef PRODUCT
 void PreservedMarks::assert_empty() {
< prev index next >