[pypy-commit] pypy default: mark this function as dont-look-inside

alex_gaynor noreply at buildbot.pypy.org
Fri Oct 24 20:37:00 CEST 2014


Author: Alex Gaynor <alex.gaynor at gmail.com>
Branch: 
Changeset: r74187:0307d91ca685
Date: 2014-10-24 11:36 -0700
http://bitbucket.org/pypy/pypy/changeset/0307d91ca685/

Log:	mark this function as dont-look-inside

diff --git a/pypy/module/_multiprocessing/interp_semaphore.py b/pypy/module/_multiprocessing/interp_semaphore.py
--- a/pypy/module/_multiprocessing/interp_semaphore.py
+++ b/pypy/module/_multiprocessing/interp_semaphore.py
@@ -3,7 +3,7 @@
 import sys
 import time
 
-from rpython.rlib import rgc, rthread
+from rpython.rlib import jit, rgc, rthread
 from rpython.rlib.rarithmetic import r_uint
 from rpython.rtyper.lltypesystem import rffi, lltype
 from rpython.rtyper.tool import rffi_platform as platform
@@ -95,6 +95,7 @@
     _select = external('select', [rffi.INT, rffi.VOIDP, rffi.VOIDP, rffi.VOIDP,
                                                           TIMEVALP], rffi.INT)
 
+    @jit.dont_look_inside
     def sem_open(name, oflag, mode, value):
         res = _sem_open(name, oflag, mode, value)
         if res == rffi.cast(SEM_T, SEM_FAILED):


More information about the pypy-commit mailing list