< prev index next >

src/hotspot/share/gc/z/zMarkTerminate.inline.hpp

Print this page

        

@@ -47,11 +47,11 @@
     if (nworking == 0) {
       return false;
     }
 
     const uint new_nworking = nworking + 1;
-    const uint prev_nworking = Atomic::cmpxchg(new_nworking, nworking_stage, nworking);
+    const uint prev_nworking = Atomic::cmpxchg(nworking_stage, nworking, new_nworking);
     if (prev_nworking == nworking) {
       // Success
       return true;
     }
 
< prev index next >