Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[3.9] bpo-37788: Fix reference leak when Thread is never joined (GH-26103)#26142

Merged
miss-islington merged 2 commits into
python:3.9python/cpython:3.9from
pitrou:backport-c10c2ec-3.9pitrou/cpython:backport-c10c2ec-3.9Copy head branch name to clipboard
May 15, 2021
Merged

[3.9] bpo-37788: Fix reference leak when Thread is never joined (GH-26103)#26142
miss-islington merged 2 commits into
python:3.9python/cpython:3.9from
pitrou:backport-c10c2ec-3.9pitrou/cpython:backport-c10c2ec-3.9Copy head branch name to clipboard

Conversation

@pitrou

@pitrou pitrou commented May 15, 2021

Copy link
Copy Markdown
Member

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..
(cherry picked from commit c10c2ec)

Co-authored-by: Antoine Pitrou antoine@python.org

https://bugs.python.org/issue37788

Automerge-Triggered-By: GH:pitrou

…onGH-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..
(cherry picked from commit c10c2ec)

Co-authored-by: Antoine Pitrou <antoine@python.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.