[pypy-commit] cffi sirtom67/float_complex: merge in default again. All tests pass in 2.7 on linux.
sirtom67
pypy.commits at gmail.com
Sun Apr 2 16:40:39 EDT 2017
Author: Tom Krauss <thomas.p.krauss at gmail.com>
Branch: sirtom67/float_complex
Changeset: r2924:67fe455916a4
Date: 2017-04-02 15:39 -0500
http://bitbucket.org/cffi/cffi/changeset/67fe455916a4/
Log: merge in default again. All tests pass in 2.7 on linux.
diff --git a/c/misc_thread_common.h b/c/misc_thread_common.h
--- a/c/misc_thread_common.h
+++ b/c/misc_thread_common.h
@@ -29,12 +29,7 @@
struct cffi_tls_s *tls = (struct cffi_tls_s *)p;
if (tls->local_thread_state != NULL) {
- /* We need to re-acquire the GIL temporarily to free the
- thread state. I hope it is not a problem to do it in
- a thread-local destructor.
- */
- PyEval_RestoreThread(tls->local_thread_state);
- PyThreadState_DeleteCurrent();
+ PyThreadState_Delete(tls->local_thread_state);
}
free(tls);
}
More information about the pypy-commit
mailing list