Merge
authorbpittore
Fri, 02 Mar 2012 14:34:55 -0500
changeset 11968 4734ff42362d
parent 11966 b71455d69d36 (current diff)
parent 11967 ce179af268b1 (diff)
child 11969 6cf227da58e6
Merge
--- a/hotspot/src/os/linux/vm/os_linux.cpp	Fri Mar 02 09:13:13 2012 -0800
+++ b/hotspot/src/os/linux/vm/os_linux.cpp	Fri Mar 02 14:34:55 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) {