< prev index next >

src/hotspot/share/gc/z/zPage.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.


  57   ZPage(const ZVirtualMemory& vmem, const ZPhysicalMemory& pmem);
  58   ZPage(uint8_t type, const ZVirtualMemory& vmem, const ZPhysicalMemory& pmem);
  59 
  60   uint32_t object_max_count() const;
  61   size_t object_alignment_shift() const;
  62   size_t object_alignment() const;
  63 
  64   uint8_t type() const;
  65   uintptr_t start() const;
  66   uintptr_t end() const;
  67   size_t size() const;
  68   uintptr_t top() const;
  69   size_t remaining() const;
  70 
  71   const ZPhysicalMemory& physical_memory() const;
  72   const ZVirtualMemory& virtual_memory() const;
  73 
  74   uint8_t numa_id();
  75 
  76   bool is_allocating() const;



  77   bool is_relocatable() const;
  78 
  79   bool is_mapped() const;
  80   void set_pre_mapped();
  81 
  82   uint64_t last_used() const;
  83   void set_last_used();
  84 
  85   void reset();
  86 
  87   ZPage* retype(uint8_t type);
  88   ZPage* split(size_t size);
  89   ZPage* split(uint8_t type, size_t size);
  90 
  91   bool is_in(uintptr_t addr) const;
  92 
  93   uintptr_t block_start(uintptr_t addr) const;
  94   bool block_is_obj(uintptr_t addr) const;
  95 
  96   bool is_marked() const;




  57   ZPage(const ZVirtualMemory& vmem, const ZPhysicalMemory& pmem);
  58   ZPage(uint8_t type, const ZVirtualMemory& vmem, const ZPhysicalMemory& pmem);
  59 
  60   uint32_t object_max_count() const;
  61   size_t object_alignment_shift() const;
  62   size_t object_alignment() const;
  63 
  64   uint8_t type() const;
  65   uintptr_t start() const;
  66   uintptr_t end() const;
  67   size_t size() const;
  68   uintptr_t top() const;
  69   size_t remaining() const;
  70 
  71   const ZPhysicalMemory& physical_memory() const;
  72   const ZVirtualMemory& virtual_memory() const;
  73 
  74   uint8_t numa_id();
  75 
  76   bool is_allocating() const;
  77   void pin_allocating();
  78   void unpin_allocating();
  79 
  80   bool is_relocatable() const;
  81 
  82   bool is_mapped() const;
  83   void set_pre_mapped();
  84 
  85   uint64_t last_used() const;
  86   void set_last_used();
  87 
  88   void reset();
  89 
  90   ZPage* retype(uint8_t type);
  91   ZPage* split(size_t size);
  92   ZPage* split(uint8_t type, size_t size);
  93 
  94   bool is_in(uintptr_t addr) const;
  95 
  96   uintptr_t block_start(uintptr_t addr) const;
  97   bool block_is_obj(uintptr_t addr) const;
  98 
  99   bool is_marked() const;


< prev index next >