Print this page


Split Close
Expand all
Collapse all
          --- old/src/os/linux/vm/os_linux.cpp
          +++ new/src/os/linux/vm/os_linux.cpp
↓ open down ↓ 2538 lines elided ↑ open up ↑
2539 2539  }
2540 2540  
2541 2541  void os::realign_memory(char *addr, size_t bytes, size_t alignment_hint) {
2542 2542    if (UseHugeTLBFS && alignment_hint > (size_t)vm_page_size()) {
2543 2543      // We don't check the return value: madvise(MADV_HUGEPAGE) may not
2544 2544      // be supported or the memory may already be backed by huge pages.
2545 2545      ::madvise(addr, bytes, MADV_HUGEPAGE);
2546 2546    }
2547 2547  }
2548 2548  
2549      -void os::free_memory(char *addr, size_t bytes) {
2550      -  commit_memory(addr, bytes, false);
     2549 +void os::free_memory(char *addr, size_t bytes, size_t alignment_hint) {
     2550 +  commit_memory(addr, bytes, alignment_hint, false);
2551 2551  }
2552 2552  
2553 2553  void os::numa_make_global(char *addr, size_t bytes) {
2554 2554    Linux::numa_interleave_memory(addr, bytes);
2555 2555  }
2556 2556  
2557 2557  void os::numa_make_local(char *addr, size_t bytes, int lgrp_hint) {
2558 2558    Linux::numa_tonode_memory(addr, bytes, lgrp_hint);
2559 2559  }
2560 2560  
↓ open down ↓ 2976 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX