mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 19:14:38 +02:00
7040485: Use transparent huge page on linux by default
Turn on UseLargePages by default but try only HugeTLBFS method if it is not explicitly specified on the command line. Reviewed-by: ysr
This commit is contained in:
parent
5b3550c107
commit
2abb1bbd58
5 changed files with 20 additions and 23 deletions
|
@ -274,7 +274,7 @@ class os: AllStatic {
|
|||
static char* reserve_memory_special(size_t size, char* addr = NULL,
|
||||
bool executable = false);
|
||||
static bool release_memory_special(char* addr, size_t bytes);
|
||||
static bool large_page_init();
|
||||
static void large_page_init();
|
||||
static size_t large_page_size();
|
||||
static bool can_commit_large_page_memory();
|
||||
static bool can_execute_large_page_memory();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue