Mercurial > hg > graal-compiler
comparison src/share/vm/runtime/os.hpp @ 12110:4c84d351cca9
8007074: SIGSEGV at ParMarkBitMap::verify_clear()
Summary: Replace the broken large pages implementation on Linux. New flag: -XX:+UseTransparentHugePages - Linux specific flag to turn on transparent huge page hinting with madvise(..., MAP_HUGETLB). Changed behavior: -XX:+UseLargePages - tries to use -XX:+UseTransparentHugePages before trying other large pages implementations (on Linux). Changed behavior: -XX:+UseHugeTLBFS - Use upfront allocation of Large Pages instead of using the broken implementation to dynamically committing large pages. Changed behavior: -XX:LargePageSizeInBytes - Turned off the ability to use this flag on Linux and provides warning to user if set to a value different than the OS chosen large page size. Changed behavior: Setting no large page size - Now defaults to use -XX:UseTransparentHugePages if the OS supports it. Previously, -XX:+UseHugeTLBFS was chosen if the OS was configured to use large pages.
Reviewed-by: tschatzl, dcubed, brutisso
author | stefank |
---|---|
date | Fri, 16 Aug 2013 13:22:32 +0200 |
parents | af21010d1062 |
children | 62f527c674d2 d8e99408faad |
comparison
equal
deleted
inserted
replaced
12108:badf4244ceae | 12110:4c84d351cca9 |
---|---|
326 static bool get_page_info(char *start, page_info* info); | 326 static bool get_page_info(char *start, page_info* info); |
327 static char* scan_pages(char *start, char* end, page_info* page_expected, page_info* page_found); | 327 static char* scan_pages(char *start, char* end, page_info* page_expected, page_info* page_found); |
328 | 328 |
329 static char* non_memory_address_word(); | 329 static char* non_memory_address_word(); |
330 // reserve, commit and pin the entire memory region | 330 // reserve, commit and pin the entire memory region |
331 static char* reserve_memory_special(size_t size, char* addr = NULL, | 331 static char* reserve_memory_special(size_t size, size_t alignment, |
332 bool executable = false); | 332 char* addr, bool executable); |
333 static bool release_memory_special(char* addr, size_t bytes); | 333 static bool release_memory_special(char* addr, size_t bytes); |
334 static void large_page_init(); | 334 static void large_page_init(); |
335 static size_t large_page_size(); | 335 static size_t large_page_size(); |
336 static bool can_commit_large_page_memory(); | 336 static bool can_commit_large_page_memory(); |
337 static bool can_execute_large_page_memory(); | 337 static bool can_execute_large_page_memory(); |