[pypy-svn] r59497 - pypy/build/benchmem
xoraxax at codespeak.net
xoraxax at codespeak.net
Tue Oct 28 18:13:26 CET 2008
Author: xoraxax
Date: Tue Oct 28 18:13:26 2008
New Revision: 59497
Modified:
pypy/build/benchmem/runbench.py
Log:
Also recognize segments that are readable, writable and executable as data segments.
Modified: pypy/build/benchmem/runbench.py
==============================================================================
--- pypy/build/benchmem/runbench.py (original)
+++ pypy/build/benchmem/runbench.py Tue Oct 28 18:13:26 2008
@@ -23,6 +23,7 @@
def __init__(self, executable, logpath, options):
self.executable = executable
self.executable_full_path = py.path.local.sysfind(executable)
+ assert self.executable_full_path
self.logpath = py.path.local(logpath)
self.logstream = self.logpath.open("a")
self.options = options
@@ -404,7 +405,8 @@
if kind is not None:
if kind is self.CODE and mapping.mode != 'r-xp':
matches = False
- if kind is self.DATA and mapping.mode != 'rw-p':
+ # XXX why is the data mapping sometimes executable?
+ if kind is self.DATA and mapping.mode not in ('rw-p', 'rwxp'):
matches = False
if matches != bool(inv):
More information about the Pypy-commit
mailing list