[pypy-commit] pypy default: pom pom pom
arigo
noreply at buildbot.pypy.org
Tue Aug 6 19:24:39 CEST 2013
Author: Armin Rigo <arigo at tunes.org>
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()
More information about the pypy-commit
mailing list