comparison src/os/windows/vm/os_windows.cpp @ 4734:20bfb6d15a94

7124829: NUMA: memory leak on Linux with large pages Summary: In os::free_memory() use mmap with the same attributes as for the heap space Reviewed-by: kvn Contributed-by: Aleksey Ignatenko <aleksey.v.ignatenko@intel.com>
author iveresov
date Tue, 27 Dec 2011 16:43:49 -0800
parents 4b18532913c7
children 2b3acb34791f
comparison
equal deleted inserted replaced
4730:7faca6dfa2ed 4734:20bfb6d15a94
3128 DWORD old_status; 3128 DWORD old_status;
3129 return VirtualProtect(addr, bytes, PAGE_READWRITE, &old_status) != 0; 3129 return VirtualProtect(addr, bytes, PAGE_READWRITE, &old_status) != 0;
3130 } 3130 }
3131 3131
3132 void os::realign_memory(char *addr, size_t bytes, size_t alignment_hint) { } 3132 void os::realign_memory(char *addr, size_t bytes, size_t alignment_hint) { }
3133 void os::free_memory(char *addr, size_t bytes) { } 3133 void os::free_memory(char *addr, size_t bytes, size_t alignment_hint) { }
3134 void os::numa_make_global(char *addr, size_t bytes) { } 3134 void os::numa_make_global(char *addr, size_t bytes) { }
3135 void os::numa_make_local(char *addr, size_t bytes, int lgrp_hint) { } 3135 void os::numa_make_local(char *addr, size_t bytes, int lgrp_hint) { }
3136 bool os::numa_topology_changed() { return false; } 3136 bool os::numa_topology_changed() { return false; }
3137 size_t os::numa_get_groups_num() { return MAX2(numa_node_list_holder.get_count(), 1); } 3137 size_t os::numa_get_groups_num() { return MAX2(numa_node_list_holder.get_count(), 1); }
3138 int os::numa_get_group_id() { return 0; } 3138 int os::numa_get_group_id() { return 0; }