Author: Armin Rigo <[email protected]>
Branch: 
Changeset: r65981:107b3a5b1389
Date: 2013-08-06 19:23 +0200
http://bitbucket.org/pypy/pypy/changeset/107b3a5b1389/

Log:    pom pom pom

diff --git a/pypy/module/cpyext/pystate.py b/pypy/module/cpyext/pystate.py
--- a/pypy/module/cpyext/pystate.py
+++ b/pypy/module/cpyext/pystate.py
@@ -250,7 +250,9 @@
     interpreter lock must be held."""
     Py_DecRef(space, tstate.c_dict)
     tstate.c_dict = lltype.nullptr(PyObject.TO)
-    space.threadlocals.leave_thread(space)
+    if space.config.translation.thread:
+        space.threadlocals.leave_thread(space)
+    #else: nothing to do
     space.getexecutioncontext().cleanup_cpyext_state()
     rthread.gc_thread_die()
 
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to