[issue40887] Leaks in new free lists
STINNER Victor
report at bugs.python.org
Sun Jun 7 19:13:57 EDT 2020
STINNER Victor <vstinner at python.org> added the comment:
I'm curious about this bug, so I looked at code changes.
Before Python 3.6, warnings.c "garbage" is declared as a static variable. It is initialized once but never cleared.
In Python 3.7, the variable moved into _PyRuntimeState.gc.
In Python 3.8, _PyGC_Fini() started to clear the "garbage" list. This function is called by Py_FinalizeEx() *after* PyList_Fini().
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40887>
_______________________________________
More information about the Python-bugs-list
mailing list