Author: Armin Rigo <[email protected]>
Branch:
Changeset: r75977:c1f14f44bdec
Date: 2015-02-18 12:39 +0100
http://bitbucket.org/pypy/pypy/changeset/c1f14f44bdec/
Log: fix?
diff --git a/rpython/rlib/rthread.py b/rpython/rlib/rthread.py
--- a/rpython/rlib/rthread.py
+++ b/rpython/rlib/rthread.py
@@ -144,9 +144,11 @@
return res != 0
else:
# acquire(True): if res == 0, we must invoke the slow-path
- # releasing the GIL. This is done with conditional_call() to
- # avoid JIT branches.
- jit.conditional_call(res == 0, c_thread_acquirelock, self._lock, 1)
+ # releasing the GIL. Too bad we can't use jit.conditional_call()
+ # here, because it can't be used with functions that can release
+ # the GIL...
+ if res == 0:
+ c_thread_acquirelock(self._lock, 1)
return True
def acquire_timed(self, timeout):
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit