This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients corona10, vstinner
Date 2020-06-05.09:47:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1591350424.0.0.931294505895.issue40521@roundup.psfhosted.org>
In-reply-to
Content
> bpo-40521: Make list free list per-interpreter (GH-20642)
> https://github.com/python/cpython/commit/88ec9190105c9b03f49aaef601ce02b242a75273

This change contains an interesting fix:

* _PyGC_Fini() clears gcstate->garbage list which can be stored in
  the list free list. Call _PyGC_Fini() before _PyList_Fini() to
  prevent leaking this list.

Maybe "Fini" functions should disable free lists to prevent following code to add something to a free list, during Python finalization.
History
Date User Action Args
2020-06-05 09:47:04vstinnersetrecipients: + vstinner, corona10
2020-06-05 09:47:04vstinnersetmessageid: <1591350424.0.0.931294505895.issue40521@roundup.psfhosted.org>
2020-06-05 09:47:03vstinnerlinkissue40521 messages
2020-06-05 09:47:03vstinnercreate