< prev index next >

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

Print this page

        

*** 31,41 **** _nworkers(0), _nworking_stage0(0), _nworking_stage1(0) {} inline bool ZMarkTerminate::enter_stage(volatile uint* nworking_stage) { ! return Atomic::sub(1u, nworking_stage) == 0; } inline void ZMarkTerminate::exit_stage(volatile uint* nworking_stage) { Atomic::add(nworking_stage, 1u); } --- 31,41 ---- _nworkers(0), _nworking_stage0(0), _nworking_stage1(0) {} inline bool ZMarkTerminate::enter_stage(volatile uint* nworking_stage) { ! return Atomic::sub(nworking_stage, 1u) == 0; } inline void ZMarkTerminate::exit_stage(volatile uint* nworking_stage) { Atomic::add(nworking_stage, 1u); }
< prev index next >