Author: Brian Kearns <[email protected]>
Branch:
Changeset: r62375:1cbecc1dd793
Date: 2013-03-16 14:45 -0700
http://bitbucket.org/pypy/pypy/changeset/1cbecc1dd793/
Log: remove untested hack in rmmap that creates inconsistent behavior
(mmap always requires SHARED or PRIVATE)
diff --git a/rpython/rlib/rmmap.py b/rpython/rlib/rmmap.py
--- a/rpython/rlib/rmmap.py
+++ b/rpython/rlib/rmmap.py
@@ -13,7 +13,6 @@
_POSIX = os.name == "posix"
_MS_WINDOWS = os.name == "nt"
_LINUX = "linux" in sys.platform
-_DARWIN = sys.platform == "darwin"
_64BIT = "64bit" in platform.architecture()[0]
_ARM = platform.machine().startswith('arm')
_PPC = platform.machine().startswith('ppc')
@@ -681,9 +680,6 @@
else:
m.fd = os.dup(fd)
- if _DARWIN and not flags & MAP_SHARED:
- flags |= MAP_PRIVATE
-
# XXX if we use hintp below in alloc, the NonConstant
# is necessary since we want a general version of c_mmap
# to be annotated with a non-constant pointer.
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit