< prev index next >

src/hotspot/share/gc/z/zMarkStackAllocator.cpp

Print this page

        

@@ -68,11 +68,11 @@
     if (new_top > end) {
       // Not enough space left
       return 0;
     }
 
-    const uintptr_t prev_top = Atomic::cmpxchg(new_top, &_top, top);
+    const uintptr_t prev_top = Atomic::cmpxchg(&_top, top, new_top);
     if (prev_top == top) {
       // Success
       return top;
     }
 
< prev index next >