bpo-19466: Py_Finalize() clears daemon threads earlier by vstinner · Pull Request #18848 · python/cpython
vstinner
changed the title
bpo-19466: Py_Finalize() clears daemon threads earlier
[WIP] bpo-19466: Py_Finalize() clears daemon threads earlier
Clear the frames of daemon threads earlier during the Python shutdown to call objects destructors. So "unclosed file" resource warnings are now emitted for daemon threads in a more reliable way. Cleanup _PyThreadState_DeleteExcept() code: rename "garbage" to "list".
vstinner
changed the title
[WIP] bpo-19466: Py_Finalize() clears daemon threads earlier
bpo-19466: Py_Finalize() clears daemon threads earlier
vstinner
deleted the
finalize_daemon_threads
branch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters