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

gh-112069: Make sets thread-safe with the GIL disabled #113800

Merged
merged 28 commits into from
Mar 8, 2024
Merged
Show file tree
Hide file tree
Changes from 24 commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
131cb80
Use `@critical_section` where possible
tomasr8 Feb 11, 2024
7d2925a
Convert `set_len`
tomasr8 Feb 11, 2024
4410da9
Add TODO comments
tomasr8 Jan 12, 2024
87c6c68
Make `set_iter` thread-safe
tomasr8 Jan 12, 2024
497d062
Convert all C API functions
tomasr8 Feb 11, 2024
b06292a
Convert all `tp_` methods
tomasr8 Feb 11, 2024
44694c0
Convert all number methods
tomasr8 Feb 11, 2024
ffe4273
Convert methods that take `*args`
tomasr8 Feb 11, 2024
fe32f6e
Add news entry
tomasr8 Jan 12, 2024
9da7d2c
Move critical section to `make_new_set`
tomasr8 Feb 13, 2024
ec7cfff
Align comments
tomasr8 Feb 13, 2024
65b9712
Remove locking from `set_vectorcall`
tomasr8 Feb 13, 2024
31e6e47
Simplify `PySet_Clear`
tomasr8 Feb 13, 2024
ef76ff1
Remove locking around `set_copy`
tomasr8 Feb 13, 2024
9305a4c
Remove unnecessary locking
tomasr8 Feb 13, 2024
e2271e3
Remove unnecessary locking around dict objects
tomasr8 Feb 13, 2024
59e4a23
Assert that the lock is held in `set_update_internal`
tomasr8 Feb 13, 2024
3b4fa1f
Remove unnecessary macros
tomasr8 Feb 13, 2024
933b2e5
Merge branch 'main' into gil-set
tomasr8 Feb 15, 2024
c7f8f18
Merge branch 'main' into gil-set
colesbury Mar 7, 2024
8d76137
Avoid critical section reacquisitions
colesbury Mar 6, 2024
255d0ab
Split critical section off of set_repr
colesbury Mar 7, 2024
4dc853d
Minor formatting changes
colesbury Mar 7, 2024
ad23588
Remove NEWS entry
colesbury Mar 7, 2024
0fde8dd
Apply suggestions from code review
colesbury Mar 7, 2024
6573c8d
Move definitions of 'rv' down
colesbury Mar 7, 2024
828a62d
Use FT_ATOMIC_LOAD_SSIZE_RELAXED
colesbury Mar 8, 2024
95a9100
Add missing include
colesbury Mar 8, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
171 changes: 164 additions & 7 deletions Objects/clinic/setobject.c.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading