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