--- old/src/hotspot/share/memory/virtualspace.hpp 2018-11-08 13:48:42.386374873 -0800 +++ new/src/hotspot/share/memory/virtualspace.hpp 2018-11-08 13:48:41.930374892 -0800 @@ -38,6 +38,7 @@ size_t _alignment; bool _special; int _fd_for_heap; + size_t _actual_page_size; private: bool _executable; @@ -48,6 +49,7 @@ void initialize(size_t size, size_t alignment, bool large, char* requested_address, bool executable); + void update_actual_page_size(bool large_page); public: // Constructor @@ -70,6 +72,7 @@ bool executable() const { return _executable; } size_t noaccess_prefix() const { return _noaccess_prefix; } bool is_reserved() const { return _base != NULL; } + size_t actual_page_size() const { return _actual_page_size; } void release(); // Splitting