2532 ::madvise(addr, bytes, MADV_HUGEPAGE); |
2532 ::madvise(addr, bytes, MADV_HUGEPAGE); |
2533 } |
2533 } |
2534 } |
2534 } |
2535 |
2535 |
2536 void os::free_memory(char *addr, size_t bytes) { |
2536 void os::free_memory(char *addr, size_t bytes) { |
2537 ::madvise(addr, bytes, MADV_DONTNEED); |
2537 commit_memory(addr, bytes, false); |
2538 } |
2538 } |
2539 |
2539 |
2540 void os::numa_make_global(char *addr, size_t bytes) { |
2540 void os::numa_make_global(char *addr, size_t bytes) { |
2541 Linux::numa_interleave_memory(addr, bytes); |
2541 Linux::numa_interleave_memory(addr, bytes); |
2542 } |
2542 } |