comparison src/share/vm/runtime/os.hpp @ 2415:188c9a5d6a6d

7040485: Use transparent huge page on linux by default Summary: Turn on UseLargePages by default but try only HugeTLBFS method if it is not explicitly specified on the command line. Reviewed-by: ysr
author iveresov
date Fri, 29 Apr 2011 12:39:32 -0700
parents 677234770800
children
comparison
equal deleted inserted replaced
30:a84a447c5cf8 31:cd0d5e9f620e
272 static char* non_memory_address_word(); 272 static char* non_memory_address_word();
273 // reserve, commit and pin the entire memory region 273 // reserve, commit and pin the entire memory region
274 static char* reserve_memory_special(size_t size, char* addr = NULL, 274 static char* reserve_memory_special(size_t size, char* addr = NULL,
275 bool executable = false); 275 bool executable = false);
276 static bool release_memory_special(char* addr, size_t bytes); 276 static bool release_memory_special(char* addr, size_t bytes);
277 static bool large_page_init(); 277 static void large_page_init();
278 static size_t large_page_size(); 278 static size_t large_page_size();
279 static bool can_commit_large_page_memory(); 279 static bool can_commit_large_page_memory();
280 static bool can_execute_large_page_memory(); 280 static bool can_execute_large_page_memory();
281 281
282 // OS interface to polling page 282 // OS interface to polling page