< prev index next >

src/hotspot/share/memory/metaspace.cpp

Print this page

        

@@ -160,11 +160,11 @@
   }
 
   if (can_retry != NULL) {
     *can_retry = true;
   }
-  size_t prev_value = Atomic::cmpxchg(new_value, &_capacity_until_GC, old_capacity_until_GC);
+  size_t prev_value = Atomic::cmpxchg(&_capacity_until_GC, old_capacity_until_GC, new_value);
 
   if (old_capacity_until_GC != prev_value) {
     return false;
   }
 
< prev index next >