< prev index next >

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

Print this page

        

@@ -144,11 +144,19 @@
 
   return _numa_id;
 }
 
 inline bool ZPage::is_allocating() const {
-  return _seqnum == ZGlobalSeqNum;
+  return _seqnum >= ZGlobalSeqNum;
+}
+
+inline void ZPage::pin_allocating() {
+  _seqnum = (uint32_t)-1;
+}
+
+inline void ZPage::unpin_allocating() {
+  _seqnum = ZGlobalSeqNum;
 }
 
 inline bool ZPage::is_relocatable() const {
   return _seqnum < ZGlobalSeqNum;
 }
< prev index next >