comparison src/share/vm/runtime/os.hpp @ 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 11c26bfcf8c7
children 2b3acb34791f
comparison
equal deleted inserted replaced
4730:7faca6dfa2ed 4734:20bfb6d15a94
254 bool allow_exec = false); 254 bool allow_exec = false);
255 static char* remap_memory(int fd, const char* file_name, size_t file_offset, 255 static char* remap_memory(int fd, const char* file_name, size_t file_offset,
256 char *addr, size_t bytes, bool read_only, 256 char *addr, size_t bytes, bool read_only,
257 bool allow_exec); 257 bool allow_exec);
258 static bool unmap_memory(char *addr, size_t bytes); 258 static bool unmap_memory(char *addr, size_t bytes);
259 static void free_memory(char *addr, size_t bytes); 259 static void free_memory(char *addr, size_t bytes, size_t alignment_hint);
260 static void realign_memory(char *addr, size_t bytes, size_t alignment_hint); 260 static void realign_memory(char *addr, size_t bytes, size_t alignment_hint);
261 261
262 // NUMA-specific interface 262 // NUMA-specific interface
263 static bool numa_has_static_binding(); 263 static bool numa_has_static_binding();
264 static bool numa_has_group_homing(); 264 static bool numa_has_group_homing();