summaryrefslogtreecommitdiffstats
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorAntoine Pitrou <antoine@python.org>2021-05-14 19:37:20 (GMT)
committerGitHub <noreply@github.com>2021-05-14 19:37:20 (GMT)
commitc10c2ec7a0e06975e8010c56c9c3270f8ea322ec (patch)
tree7fa4d274bd1bd9d09bff60b50b59d25a2ac28b92 /Python/pythonrun.c
parent07797121cc290ede0b3d3cf02068f3d993cddd15 (diff)
downloadcpython-c10c2ec7a0e06975e8010c56c9c3270f8ea322ec.zip
cpython-c10c2ec7a0e06975e8010c56c9c3270f8ea322ec.tar.gz
cpython-c10c2ec7a0e06975e8010c56c9c3270f8ea322ec.tar.bz2
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 'Python/pythonrun.c')
0 files changed, 0 insertions, 0 deletions