< prev index next >
src/hotspot/share/gc/z/zPhysicalMemory.inline.hpp
Print this page
*** 56,73 ****
inline void ZPhysicalMemorySegment::set_committed(bool committed) {
_committed = committed;
}
inline bool ZPhysicalMemory::is_null() const {
! return _nsegments == 0;
}
! inline uint32_t ZPhysicalMemory::nsegments() const {
! return _nsegments;
}
! inline const ZPhysicalMemorySegment& ZPhysicalMemory::segment(uint32_t index) const {
! assert(index < _nsegments, "Invalid segment index");
! return _segments[index];
}
#endif // SHARE_GC_Z_ZPHYSICALMEMORY_INLINE_HPP
--- 56,72 ----
inline void ZPhysicalMemorySegment::set_committed(bool committed) {
_committed = committed;
}
inline bool ZPhysicalMemory::is_null() const {
! return _segments.length() == 0;
}
! inline int ZPhysicalMemory::nsegments() const {
! return _segments.length();
}
! inline const ZPhysicalMemorySegment& ZPhysicalMemory::segment(int index) const {
! return _segments.at(index);
}
#endif // SHARE_GC_Z_ZPHYSICALMEMORY_INLINE_HPP
< prev index next >