mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-18 18:14:38 +02:00
8244752: Enable Linux support for multiple huge page sizes -XX:LargePageSizeInBytes
Reviewed-by: kbarrett, sjohanss, stuefe, tschatzl
This commit is contained in:
parent
dde3b90050
commit
31479a0d48
2 changed files with 81 additions and 20 deletions
|
@ -56,6 +56,8 @@ class Linux {
|
|||
static GrowableArray<int>* _cpu_to_node;
|
||||
static GrowableArray<int>* _nindex_to_node;
|
||||
|
||||
static size_t _default_large_page_size;
|
||||
|
||||
protected:
|
||||
|
||||
static julong _physical_memory;
|
||||
|
@ -81,7 +83,9 @@ class Linux {
|
|||
static GrowableArray<int>* cpu_to_node() { return _cpu_to_node; }
|
||||
static GrowableArray<int>* 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 size_t find_large_page_size(size_t page_size);
|
||||
static size_t setup_large_page_size();
|
||||
|
||||
static bool setup_large_page_type(size_t page_size);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue