Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
gh-114271: Fix race inThread.join()#114839
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
Uh oh!
There was an error while loading.Please reload this page.
Merged
Changes fromall commits
Commits
Show all changes
34 commits Select commitHold shift + click to select a range
fb13cf6 Fix race in `Thread.join()`
mpageb093e5d 📜🤖 Added by blurb_it.
blurb-it[bot]1039208 Fix NEWS entry
mpage196081d Work around c-analyzer limitation
mpage19d7af1 Merge branch 'main' into gh-114271-remove-tstate_lock
mpagec86d349 Merge branch 'main' into gh-114271-remove-tstate_lock
mpage40e4b36 Merge branch 'main' into gh-114271-remove-tstate_lock
mpage4ed1083 Merge branch 'main' into gh-114271-remove-tstate_lock
mpage34b6065 Merge branch 'main' into gh-114271-remove-tstate_lock
mpage1c82786 Fix two compilation errors post merge
mpage0e86cf9 Use ThreadHandle as the single abstraction for thread joining
mpage76bde03 Isolate all logic in _threadmodule
mpage02123b8 Fix flag
mpage24c1d47 Note that the once flag serializes both join and set_done
mpage1a1bfde Fix unused variable warning
mpageb3c2c45 Rename ThreadHandleObject to PyThreadHandleObject
mpage7b9d007 Be consistent with documentation of true values
mpage5d0dc7a Threads started using `start_joinable_thread` should be daemon thread…
mpage11bb826 Remove any remaining handles once the module is cleared
mpage06f6787 Always have a _ThreadHandle in Thread
mpaged56f892 Check main thread handle during shutdown
mpage57e106d Merge branch 'main' into gh-114271-remove-tstate_lock
mpage2218c0a Remove vestigial _PyEventRc declarations
mpagef9d3290 Remove duplicate declaration
mpagea7095e4 Revert order change in `_DummyThread.is_alive`
mpageccd1c2e Merge branch 'main' into gh-114271-remove-tstate_lock
mpage180300c Add handles to shutdown list before starting the thread
mpagec486503 Move some code around to remove need for forward decls
mpage3121623 Simplify start failure path
mpageee96259 Merge branch 'main' into gh-114271-remove-tstate_lock
mpagedc57ed2 Use infinitive in docstring for _shutdown
mpage48b86ae Update comment for _make_thread_handle
mpage9a8ea9b Merge branch 'main' into gh-114271-remove-tstate_lock
pitrou339b2e6 Merge branch 'main' into gh-114271-remove-tstate_lock
pitrouFile filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
10 changes: 0 additions & 10 deletionsInclude/internal/pycore_lock.h
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletionInclude/internal/pycore_pythread.h
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletionLib/test/test_audit.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletionsLib/test/test_concurrent_futures/test_process_pool.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletionsLib/test/test_thread.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
61 changes: 1 addition & 60 deletionsLib/test/test_threading.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Oops, something went wrong.
Uh oh!
There was an error while loading.Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.