Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3.12] gh-111644: Fix support threading_cleanup() (GH-111714) #111716

Merged
merged 1 commit into from
Nov 4, 2023

Conversation

miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Nov 4, 2023

Copy the list of dangling threads to make sure that the list of
"Dangling thread" is complete. Previously, the list was incomplete if
threads completed just before the list was displayed.

Changes:

  • Rewrite the warning to make it easier to understand.
  • Use support.sleeping_retry().
  • threading_cleanup() no longer copies threading._dangling,
    but only counts the number of dangling thread.
  • Remove support.gc_support() call.
    (cherry picked from commit f62c7cc)

Co-authored-by: Victor Stinner vstinner@python.org

Copy the list of dangling threads to make sure that the list of
"Dangling thread" is complete. Previously, the list was incomplete if
threads completed just before the list was displayed.

Changes:

* Rewrite the warning to make it easier to understand.
* Use support.sleeping_retry().
* threading_cleanup() no longer copies threading._dangling,
  but only counts the number of dangling thread.
* Remove support.gc_support() call.
(cherry picked from commit f62c7cc)

Co-authored-by: Victor Stinner <vstinner@python.org>
@vstinner vstinner enabled auto-merge (squash) November 4, 2023 00:20
@vstinner vstinner merged commit 02f8f78 into python:3.12 Nov 4, 2023
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants