equal
deleted
inserted
replaced
28 #include "memory/allocation.hpp" |
28 #include "memory/allocation.hpp" |
29 #include "utilities/globalDefinitions.hpp" |
29 #include "utilities/globalDefinitions.hpp" |
30 |
30 |
31 class ZMarkTerminate { |
31 class ZMarkTerminate { |
32 private: |
32 private: |
33 uint _nworkers; |
33 uint _nworkers; |
34 volatile uint _nworking_stage0 ATTRIBUTE_ALIGNED(ZCacheLineSize); |
34 ZCACHE_ALIGNED volatile uint _nworking_stage0; |
35 volatile uint _nworking_stage1; |
35 volatile uint _nworking_stage1; |
36 |
36 |
37 bool enter_stage(volatile uint* nworking_stage); |
37 bool enter_stage(volatile uint* nworking_stage); |
38 void exit_stage(volatile uint* nworking_stage); |
38 void exit_stage(volatile uint* nworking_stage); |
39 bool try_exit_stage(volatile uint* nworking_stage); |
39 bool try_exit_stage(volatile uint* nworking_stage); |
40 |
40 |