hotspot/src/os/linux/vm/os_linux.cpp
changeset 11967 ce179af268b1
parent 11601 f359304c1856
child 12116 d81396ae8bf6
--- a/hotspot/src/os/linux/vm/os_linux.cpp	Tue Feb 21 13:14:55 2012 -0500
+++ b/hotspot/src/os/linux/vm/os_linux.cpp	Wed Feb 29 12:58:49 2012 -0500
@@ -4690,14 +4690,12 @@
                      char *addr, size_t bytes, bool read_only,
                      bool allow_exec) {
   int prot;
-  int flags;
+  int flags = MAP_PRIVATE;
 
   if (read_only) {
     prot = PROT_READ;
-    flags = MAP_SHARED;
   } else {
     prot = PROT_READ | PROT_WRITE;
-    flags = MAP_PRIVATE;
   }
 
   if (allow_exec) {