< prev index next >

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

Print this page




  41   return _start;
  42 }
  43 
  44 inline uintptr_t ZPhysicalMemorySegment::end() const {
  45   return _end;
  46 }
  47 
  48 inline size_t ZPhysicalMemorySegment::size() const {
  49   return _end - _start;
  50 }
  51 
  52 inline bool ZPhysicalMemorySegment::is_committed() const {
  53   return _committed;
  54 }
  55 
  56 inline void ZPhysicalMemorySegment::set_committed(bool committed) {
  57   _committed = committed;
  58 }
  59 
  60 inline bool ZPhysicalMemory::is_null() const {
  61   return _nsegments == 0;
  62 }
  63 
  64 inline uint32_t ZPhysicalMemory::nsegments() const {
  65   return _nsegments;
  66 }
  67 
  68 inline const ZPhysicalMemorySegment& ZPhysicalMemory::segment(uint32_t index) const {
  69   assert(index < _nsegments, "Invalid segment index");
  70   return _segments[index];
  71 }
  72 
  73 #endif // SHARE_GC_Z_ZPHYSICALMEMORY_INLINE_HPP


  41   return _start;
  42 }
  43 
  44 inline uintptr_t ZPhysicalMemorySegment::end() const {
  45   return _end;
  46 }
  47 
  48 inline size_t ZPhysicalMemorySegment::size() const {
  49   return _end - _start;
  50 }
  51 
  52 inline bool ZPhysicalMemorySegment::is_committed() const {
  53   return _committed;
  54 }
  55 
  56 inline void ZPhysicalMemorySegment::set_committed(bool committed) {
  57   _committed = committed;
  58 }
  59 
  60 inline bool ZPhysicalMemory::is_null() const {
  61   return _segments.length() == 0;
  62 }
  63 
  64 inline int ZPhysicalMemory::nsegments() const {
  65   return _segments.length();
  66 }
  67 
  68 inline const ZPhysicalMemorySegment& ZPhysicalMemory::segment(int index) const {
  69   return _segments.at(index);

  70 }
  71 
  72 #endif // SHARE_GC_Z_ZPHYSICALMEMORY_INLINE_HPP
< prev index next >