< prev index next >

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

Print this page

        

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