--- old/src/hotspot/share/gc/z/zPhysicalMemory.hpp 2020-01-15 13:47:35.735409921 +0100 +++ new/src/hotspot/share/gc/z/zPhysicalMemory.hpp 2020-01-15 13:47:35.450404121 +0100 @@ -24,8 +24,9 @@ #ifndef SHARE_GC_Z_ZPHYSICALMEMORY_HPP #define SHARE_GC_Z_ZPHYSICALMEMORY_HPP +#include "gc/z/zMemory.hpp" #include "memory/allocation.hpp" -#include OS_HEADER(gc/z/zPhysicalMemoryBacking) +#include OS_HEADER(gc/z/zBackingFile) class ZPhysicalMemorySegment : public CHeapObj { private: @@ -65,11 +66,17 @@ class ZPhysicalMemoryManager { private: - ZPhysicalMemoryBacking _backing; + ZBackingFile _backing; + ZMemoryManager _committed; + ZMemoryManager _uncommitted; void nmt_commit(const ZPhysicalMemory& pmem, uintptr_t offset) const; void nmt_uncommit(const ZPhysicalMemory& pmem, uintptr_t offset) const; + void pretouch_view(uintptr_t addr, size_t size) const; + void map_view(const ZPhysicalMemory& pmem, uintptr_t addr) const; + void unmap_view(const ZPhysicalMemory& pmem, uintptr_t addr) const; + public: bool is_initialized() const;