Author: Alex Gaynor <[email protected]>
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):
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit