summaryrefslogtreecommitdiffstats
path: root/Include/internal/pycore_gc.h
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2020-06-23 09:33:18 (GMT)
committerGitHub <noreply@github.com>2020-06-23 09:33:18 (GMT)
commitb4e85cadfbc2b1b24ec5f3159e351dbacedaa5e0 (patch)
treea121d0df89bdc965649d65a0ca50543293431e61 /Include/internal/pycore_gc.h
parent26a1ad1c24717990265b71ed093d691500d6301c (diff)
downloadcpython-b4e85cadfbc2b1b24ec5f3159e351dbacedaa5e0.zip
cpython-b4e85cadfbc2b1b24ec5f3159e351dbacedaa5e0.tar.gz
cpython-b4e85cadfbc2b1b24ec5f3159e351dbacedaa5e0.tar.bz2
bpo-40521: Make dict free lists per-interpreter (GH-20645)
Each interpreter now has its own dict free list: * Move dict free lists into PyInterpreterState. * Move PyDict_MAXFREELIST define to pycore_interp.h * Add _Py_dict_state structure. * Add tstate parameter to _PyDict_ClearFreeList() and _PyDict_Fini(). * In debug mode, ensure that the dict free lists are not used after _PyDict_Fini() is called. * Remove "#ifdef EXPERIMENTAL_ISOLATED_SUBINTERPRETERS".
Diffstat (limited to 'Include/internal/pycore_gc.h')
-rw-r--r--Include/internal/pycore_gc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/internal/pycore_gc.h b/Include/internal/pycore_gc.h
index fd3fb7f..da202a1 100644
--- a/Include/internal/pycore_gc.h
+++ b/Include/internal/pycore_gc.h
@@ -169,7 +169,7 @@ extern void _PyFrame_ClearFreeList(PyThreadState *tstate);
extern void _PyTuple_ClearFreeList(PyThreadState *tstate);
extern void _PyFloat_ClearFreeList(PyThreadState *tstate);
extern void _PyList_ClearFreeList(PyThreadState *tstate);
-extern void _PyDict_ClearFreeList(void);
+extern void _PyDict_ClearFreeList(PyThreadState *tstate);
extern void _PyAsyncGen_ClearFreeLists(PyThreadState *tstate);
extern void _PyContext_ClearFreeList(PyThreadState *tstate);