changeset 3178:03cb7c836ef3

Merge
author bpittore
date Fri, 02 Mar 2012 14:34:55 -0500
parents ce292d6c0385 9eaf473fff9b
children 030b5306d60f
files
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/os/linux/vm/os_linux.cpp	Fri Mar 02 09:13:13 2012 -0800
+++ b/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) {