summaryrefslogtreecommitdiffstats
path: root/Python/sysmodule.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/sysmodule.c')
-rw-r--r--Python/sysmodule.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c
index a4abd7c..a086bb9 100644
--- a/Python/sysmodule.c
+++ b/Python/sysmodule.c
@@ -2175,6 +2175,11 @@ sys__clear_internal_caches_impl(PyObject *module)
PyInterpreterState *interp = _PyInterpreterState_GET();
_Py_Executors_InvalidateAll(interp, 0);
#endif
+#ifdef Py_GIL_DISABLED
+ if (_Py_ClearUnusedTLBC(_PyInterpreterState_GET()) < 0) {
+ return NULL;
+ }
+#endif
PyType_ClearCache();
Py_RETURN_NONE;
}