Author: Maciej Fijalkowski <[email protected]>
Branch: rmmap-nohint
Changeset: r47613:f71b783059a5
Date: 2011-09-26 17:10 -0300
http://bitbucket.org/pypy/pypy/changeset/f71b783059a5/

Log:    A branch to check out performance of not passing hint to the mmap

diff --git a/pypy/rlib/rmmap.py b/pypy/rlib/rmmap.py
--- a/pypy/rlib/rmmap.py
+++ b/pypy/rlib/rmmap.py
@@ -686,7 +686,7 @@
         flags = MAP_PRIVATE | MAP_ANONYMOUS
         prot = PROT_EXEC | PROT_READ | PROT_WRITE
         hintp = rffi.cast(PTR, hint.pos)
-        res = c_mmap_safe(hintp, map_size, prot, flags, -1, 0)
+        res = c_mmap_safe(NULL, map_size, prot, flags, -1, 0)
         if res == rffi.cast(PTR, -1):
             # some systems (some versions of OS/X?) complain if they
             # are passed a non-zero address.  Try again.
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to