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:
Igor Veresov 2011-04-29 12:39:32 -07:00
parent 5b3550c107
commit 2abb1bbd58
5 changed files with 20 additions and 23 deletions

View file

@ -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();