summaryrefslogtreecommitdiffstats
path: root/Include/internal/pycore_context.h
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2020-06-05 00:56:37 (GMT)
committerGitHub <noreply@github.com>2020-06-05 00:56:37 (GMT)
commite005ead49b1ee2b1507ceea94e6f89c28ecf1f81 (patch)
treef2846eec88f5539825acc200c3b8a3d91a3b7d0f /Include/internal/pycore_context.h
parent78a02c2568714562e23e885b6dc5730601f35226 (diff)
downloadcpython-e005ead49b1ee2b1507ceea94e6f89c28ecf1f81.zip
cpython-e005ead49b1ee2b1507ceea94e6f89c28ecf1f81.tar.gz
cpython-e005ead49b1ee2b1507ceea94e6f89c28ecf1f81.tar.bz2
bpo-40521: Make context free list per-interpreter (GH-20644)
Each interpreter now has its own context free list: * Move context free list into PyInterpreterState. * Add _Py_context_state structure. * Add tstate parameter to _PyContext_ClearFreeList() and _PyContext_Fini(). * Pass tstate to clear_freelists().
Diffstat (limited to 'Include/internal/pycore_context.h')
-rw-r--r--Include/internal/pycore_context.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/internal/pycore_context.h b/Include/internal/pycore_context.h
index f665ad5..ea4b3c8 100644
--- a/Include/internal/pycore_context.h
+++ b/Include/internal/pycore_context.h
@@ -37,6 +37,6 @@ struct _pycontexttokenobject {
int _PyContext_Init(void);
-void _PyContext_Fini(void);
+void _PyContext_Fini(PyThreadState *tstate);
#endif /* !Py_INTERNAL_CONTEXT_H */