< prev index next >

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

Print this page




 142   if (_numa_id == (uint8_t)-1) {
 143     _numa_id = ZNUMA::memory_id(ZAddress::good(start()));
 144   }
 145 
 146   return _numa_id;
 147 }
 148 
 149 inline bool ZPage::is_allocating() const {
 150   return _seqnum == ZGlobalSeqNum;
 151 }
 152 
 153 inline bool ZPage::is_relocatable() const {
 154   return _seqnum < ZGlobalSeqNum;
 155 }
 156 
 157 inline uint64_t ZPage::last_used() const {
 158   return _last_used;
 159 }
 160 
 161 inline void ZPage::set_last_used() {
 162   _last_used = os::elapsedTime();
 163 }
 164 
 165 inline bool ZPage::is_in(uintptr_t addr) const {
 166   const uintptr_t offset = ZAddress::offset(addr);
 167   return offset >= start() && offset < top();
 168 }
 169 
 170 inline bool ZPage::is_marked() const {
 171   assert(is_relocatable(), "Invalid page state");
 172   return _livemap.is_marked();
 173 }
 174 
 175 inline bool ZPage::is_object_marked(uintptr_t addr) const {
 176   const size_t index = ((ZAddress::offset(addr) - start()) >> object_alignment_shift()) * 2;
 177   return _livemap.get(index);
 178 }
 179 
 180 inline bool ZPage::is_object_strongly_marked(uintptr_t addr) const {
 181   const size_t index = ((ZAddress::offset(addr) - start()) >> object_alignment_shift()) * 2;
 182   return _livemap.get(index + 1);




 142   if (_numa_id == (uint8_t)-1) {
 143     _numa_id = ZNUMA::memory_id(ZAddress::good(start()));
 144   }
 145 
 146   return _numa_id;
 147 }
 148 
 149 inline bool ZPage::is_allocating() const {
 150   return _seqnum == ZGlobalSeqNum;
 151 }
 152 
 153 inline bool ZPage::is_relocatable() const {
 154   return _seqnum < ZGlobalSeqNum;
 155 }
 156 
 157 inline uint64_t ZPage::last_used() const {
 158   return _last_used;
 159 }
 160 
 161 inline void ZPage::set_last_used() {
 162   _last_used = ceil(os::elapsedTime());
 163 }
 164 
 165 inline bool ZPage::is_in(uintptr_t addr) const {
 166   const uintptr_t offset = ZAddress::offset(addr);
 167   return offset >= start() && offset < top();
 168 }
 169 
 170 inline bool ZPage::is_marked() const {
 171   assert(is_relocatable(), "Invalid page state");
 172   return _livemap.is_marked();
 173 }
 174 
 175 inline bool ZPage::is_object_marked(uintptr_t addr) const {
 176   const size_t index = ((ZAddress::offset(addr) - start()) >> object_alignment_shift()) * 2;
 177   return _livemap.get(index);
 178 }
 179 
 180 inline bool ZPage::is_object_strongly_marked(uintptr_t addr) const {
 181   const size_t index = ((ZAddress::offset(addr) - start()) >> object_alignment_shift()) * 2;
 182   return _livemap.get(index + 1);


< prev index next >