src/os/linux/vm/os_linux.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File linux-large-pages Cdiff src/os/linux/vm/os_linux.cpp

src/os/linux/vm/os_linux.cpp

Print this page

        

*** 2529,2542 **** if (UseNUMAInterleaving) { numa_make_global(addr, size); } return true; } ! return false; } ! return commit_memory(addr, size, exec); } void os::realign_memory(char *addr, size_t bytes, size_t alignment_hint) { if (UseHugeTLBFS && alignment_hint > (size_t)vm_page_size()) { // We don't check the return value: madvise(MADV_HUGEPAGE) may not --- 2529,2546 ---- if (UseNUMAInterleaving) { numa_make_global(addr, size); } return true; } ! // Fall through and try to use small pages } ! if (commit_memory(addr, size, exec)) { ! realign_memory(addr, size, alignment_hint); ! return true; ! } ! return false; } void os::realign_memory(char *addr, size_t bytes, size_t alignment_hint) { if (UseHugeTLBFS && alignment_hint > (size_t)vm_page_size()) { // We don't check the return value: madvise(MADV_HUGEPAGE) may not
src/os/linux/vm/os_linux.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File