summaryrefslogtreecommitdiff
path: root/Lib/numbers.py
diff options
context:
space:
mode:
authorAntoine Pitrou <antoine@python.org>2021-05-14 21:37:20 +0200
committerGitHub <noreply@github.com>2021-05-14 12:37:20 -0700
commitc10c2ec7a0e06975e8010c56c9c3270f8ea322ec (patch)
tree7fa4d274bd1bd9d09bff60b50b59d25a2ac28b92 /Lib/numbers.py
parent07797121cc290ede0b3d3cf02068f3d993cddd15 (diff)
downloadcpython-git-c10c2ec7a0e06975e8010c56c9c3270f8ea322ec.tar.gz
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.
Diffstat (limited to 'Lib/numbers.py')
0 files changed, 0 insertions, 0 deletions