summaryrefslogtreecommitdiff
path: root/c/_cffi_backend.c
diff options
context:
space:
mode:
authorArmin Rigo <arigo@tunes.org>2019-01-28 23:33:19 +0100
committerArmin Rigo <arigo@tunes.org>2019-01-28 23:33:19 +0100
commit8d4565d921d1950dc4541da90ca86a06f18e763c (patch)
treee12eaa9bbe23378a755b48c09e46b4aef2055cb2 /c/_cffi_backend.c
parentf004d46dacb4052fb71b7138bfee333d348f3fee (diff)
downloadcffi-8d4565d921d1950dc4541da90ca86a06f18e763c.tar.gz
Issue #362
Add "thread canary" objects which are deallocated if the PyThreadState is explicitly deallocated by CPython. If the thread shuts down first, then instead the canary is inserted in a zombie list. In that case, we clear and delete properly the PyThreadState at the next occasion.
Diffstat (limited to 'c/_cffi_backend.c')
-rw-r--r--c/_cffi_backend.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/c/_cffi_backend.c b/c/_cffi_backend.c
index 724bc9b..79ee015 100644
--- a/c/_cffi_backend.c
+++ b/c/_cffi_backend.c
@@ -7671,7 +7671,7 @@ init_cffi_backend(void)
init_cffi_tls();
if (PyErr_Occurred())
INITERROR;
- init_cffi_tls_delete();
+ init_cffi_tls_zombie();
if (PyErr_Occurred())
INITERROR;