changeset 802:7e1dbef51011

Merge
author trims
date Fri, 08 May 2009 19:50:32 -0700
parents fede134842ab 622212a69394
children 07c1c01e0315
files
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/os/linux/vm/os_linux.cpp	Thu May 07 21:35:30 2009 -0700
+++ b/src/os/linux/vm/os_linux.cpp	Fri May 08 19:50:32 2009 -0700
@@ -2314,7 +2314,8 @@
 void os::realign_memory(char *addr, size_t bytes, size_t alignment_hint) { }
 
 void os::free_memory(char *addr, size_t bytes) {
-  uncommit_memory(addr, bytes);
+  ::mmap(addr, bytes, PROT_READ | PROT_WRITE,
+         MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0);
 }
 
 void os::numa_make_global(char *addr, size_t bytes) {