[pypy-svn] r71577 - pypy/trunk/pypy/rlib
fijal at codespeak.net
fijal at codespeak.net
Mon Mar 1 03:39:08 CET 2010
Author: fijal
Date: Mon Mar 1 03:38:56 2010
New Revision: 71577
Modified:
pypy/trunk/pypy/rlib/rmmap.py
Log:
I think this is a correct fix for JIT & sandbox - we assumer mmap and friends
are sandbox-safe (they can only work on existing file descs anyway). If we
compile mmap module, this will probably violate sandbox, but we compile sandbox
with no-allworkingmodules anyway
Modified: pypy/trunk/pypy/rlib/rmmap.py
==============================================================================
--- pypy/trunk/pypy/rlib/rmmap.py (original)
+++ pypy/trunk/pypy/rlib/rmmap.py Mon Mar 1 03:38:56 2010
@@ -92,10 +92,11 @@
def external(name, args, result):
return rffi.llexternal(name, args, result,
- compilation_info=CConfig._compilation_info_)
+ compilation_info=CConfig._compilation_info_,
+ sandboxsafe=True, threadsafe=True)
def winexternal(name, args, result):
- return rffi.llexternal(name, args, result, compilation_info=CConfig._compilation_info_, calling_conv='win')
+ return rffi.llexternal(name, args, result, compilation_info=CConfig._compilation_info_, calling_conv='win', sandboxsafe=True, threadsafe=True)
PTR = rffi.CCHARP
More information about the Pypy-commit
mailing list