equal
deleted
inserted
replaced
37 inline void ZLiveMap::reset() { |
37 inline void ZLiveMap::reset() { |
38 _seqnum = 0; |
38 _seqnum = 0; |
39 } |
39 } |
40 |
40 |
41 inline bool ZLiveMap::is_marked() const { |
41 inline bool ZLiveMap::is_marked() const { |
42 return OrderAccess::load_acquire(&_seqnum) == ZGlobalSeqNum; |
42 return Atomic::load_acquire(&_seqnum) == ZGlobalSeqNum; |
43 } |
43 } |
44 |
44 |
45 inline uint32_t ZLiveMap::live_objects() const { |
45 inline uint32_t ZLiveMap::live_objects() const { |
46 assert(ZGlobalPhase != ZPhaseMark, "Invalid phase"); |
46 assert(ZGlobalPhase != ZPhaseMark, "Invalid phase"); |
47 return _live_objects; |
47 return _live_objects; |