-
-
Notifications
You must be signed in to change notification settings - Fork 34.1k
gh-112069: Make sets thread-safe with the GIL disabled #113800
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
Merged
+498
−152
Merged
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
131cb80
Use `@critical_section` where possible
tomasr8 7d2925a
Convert `set_len`
tomasr8 4410da9
Add TODO comments
tomasr8 87c6c68
Make `set_iter` thread-safe
tomasr8 497d062
Convert all C API functions
tomasr8 b06292a
Convert all `tp_` methods
tomasr8 44694c0
Convert all number methods
tomasr8 ffe4273
Convert methods that take `*args`
tomasr8 fe32f6e
Add news entry
tomasr8 9da7d2c
Move critical section to `make_new_set`
tomasr8 ec7cfff
Align comments
tomasr8 65b9712
Remove locking from `set_vectorcall`
tomasr8 31e6e47
Simplify `PySet_Clear`
tomasr8 ef76ff1
Remove locking around `set_copy`
tomasr8 9305a4c
Remove unnecessary locking
tomasr8 e2271e3
Remove unnecessary locking around dict objects
tomasr8 59e4a23
Assert that the lock is held in `set_update_internal`
tomasr8 3b4fa1f
Remove unnecessary macros
tomasr8 933b2e5
Merge branch 'main' into gil-set
tomasr8 c7f8f18
Merge branch 'main' into gil-set
colesbury 8d76137
Avoid critical section reacquisitions
colesbury 255d0ab
Split critical section off of set_repr
colesbury 4dc853d
Minor formatting changes
colesbury ad23588
Remove NEWS entry
colesbury 0fde8dd
Apply suggestions from code review
colesbury 6573c8d
Move definitions of 'rv' down
colesbury 828a62d
Use FT_ATOMIC_LOAD_SSIZE_RELAXED
colesbury 95a9100
Add missing include
colesbury File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Convert all number methods
- Loading branch information
commit 44694c095f6738a4959b0a7e61614df167499024
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
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.
Uh oh!
There was an error while loading. Please reload this page.