mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
bpo-37788: Fix reference leak when Thread is never joined (GH-26103)
When a Thread is not joined after it has stopped, its lock may remain in the _shutdown_locks set until interpreter shutdown. If many threads are created this way, the _shutdown_locks set could therefore grow endlessly. To avoid such a situation, purge expired locks each time a new one is added or removed.
This commit is contained in:
parent
07797121cc
commit
c10c2ec7a0
3 changed files with 26 additions and 1 deletions
|
|
@ -0,0 +1 @@
|
|||
Fix a reference leak when a Thread object is never joined.
|
||||
Loading…
Add table
Add a link
Reference in a new issue