< prev index next >

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

Print this page
rev 55577 : JDK-8227226: segmented clearing of arrays for ZGC

Periodic checks based on chunk size during clearing of arrays for safepoint.  Make the allocation safe (pinned) and clear (good) during the iterations.

*** 144,154 **** return _numa_id; } inline bool ZPage::is_allocating() const { ! return _seqnum == ZGlobalSeqNum; } inline bool ZPage::is_relocatable() const { return _seqnum < ZGlobalSeqNum; } --- 144,162 ---- return _numa_id; } inline bool ZPage::is_allocating() const { ! 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 >