[pypy-svn] r75714 - pypy/branch/x86-64-jit-backend/pypy/module/signal

jcreigh at codespeak.net jcreigh at codespeak.net
Thu Jul 1 15:07:18 CEST 2010


Author: jcreigh
Date: Thu Jul  1 15:07:16 2010
New Revision: 75714

Modified:
   pypy/branch/x86-64-jit-backend/pypy/module/signal/interp_signal.py
Log:
add jit.dont_look_inside to some methods in module/signal/interp_signal.py that call external functions (fix for 64-bit)

Modified: pypy/branch/x86-64-jit-backend/pypy/module/signal/interp_signal.py
==============================================================================
--- pypy/branch/x86-64-jit-backend/pypy/module/signal/interp_signal.py	(original)
+++ pypy/branch/x86-64-jit-backend/pypy/module/signal/interp_signal.py	Thu Jul  1 15:07:16 2010
@@ -7,6 +7,7 @@
 from pypy.translator.tool.cbuild import ExternalCompilationInfo
 import py
 from pypy.tool import autopath
+from pypy.rlib import jit
 
 def setup():
     for key, value in cpy_signal.__dict__.items():
@@ -159,10 +160,12 @@
     return space.wrap(SIG_DFL)
 getsignal.unwrap_spec = [ObjSpace, int]
 
+ at jit.dont_look_inside
 def alarm(space, timeout):
     return space.wrap(c_alarm(timeout))
 alarm.unwrap_spec = [ObjSpace, int]
 
+ at jit.dont_look_inside
 def pause(space):
     c_pause()
     return space.w_None
@@ -173,6 +176,7 @@
         raise OperationError(space.w_ValueError,
                              space.wrap("signal number out of range"))
 
+ at jit.dont_look_inside
 def signal(space, signum, w_handler):
     """
     signal(sig, action) -> action



More information about the Pypy-commit mailing list