--- old/src/hotspot/os/linux/os_linux.hpp 2020-05-12 17:01:47.000000000 +0200 +++ new/src/hotspot/os/linux/os_linux.hpp 2020-05-12 17:01:47.000000000 +0200 @@ -56,6 +56,8 @@ static GrowableArray* _cpu_to_node; static GrowableArray* _nindex_to_node; + static size_t _default_large_page_size; + protected: static julong _physical_memory; @@ -81,7 +83,9 @@ static GrowableArray* cpu_to_node() { return _cpu_to_node; } static GrowableArray* nindex_to_node() { return _nindex_to_node; } - static size_t find_large_page_size(); + static size_t default_large_page_size(); + static size_t find_default_large_page_size(); + static bool is_valid_large_page_size(size_t page_size); static size_t setup_large_page_size(); static bool setup_large_page_type(size_t page_size);