-
-
Notifications
You must be signed in to change notification settings - Fork 32k
gh-128942: make arraymodule.c free-thread safe (lock-free) #130771
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
Open
tom-pytel
wants to merge
43
commits into
python:main
Choose a base branch
from
tom-pytel:fix-issue-128942-lockfree
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 5 commits
Commits
Show all changes
43 commits
Select commit
Hold shift + click to select a range
f54c5fc
slow arraymodule
tom-pytel 4c71f00
lockfree read and write single element
tom-pytel 512c4c7
📜🤖 Added by blurb_it.
blurb-it[bot] 060100f
ensure_shared_on_resize() in one more place
tom-pytel d0b17c6
fix stupid direct return out of critical section
tom-pytel c17b787
requested changes
tom-pytel 4fd8383
downgrade to _Py_atomic_load_ptr_relaxed in missed place
tom-pytel d00f2b7
arraymodule linked statically
tom-pytel a3e6004
cleanups
tom-pytel fb6212a
test and tsan stuff
tom-pytel 04a8f9d
getters and setters using atomics
tom-pytel 01423fd
fix 2 byte wchar_t
tom-pytel 99331dd
remove debug printf
tom-pytel 07c98cc
just a hunch...
tom-pytel cf3bbbb
atomic "memcpy"
tom-pytel 51135a4
misc
tom-pytel fff827e
use proper type FT_ macros
tom-pytel 12f0ff6
atomic aggregate _Py_atomic_source_memcpy_relaxed()
tom-pytel 1a6b8df
Merge branch 'main' into fix-issue-128942-lockfree
tom-pytel 94ef417
remove atomic memcpy
tom-pytel 0056412
Merge branch 'main' into fix-issue-128942-lockfree
tom-pytel 1431784
regen clinic
tom-pytel 460d3d7
Merge branch 'main' into fix-issue-128942-lockfree
tom-pytel 409239c
requested changes
tom-pytel a6f17c9
more requested changes
tom-pytel b5d219e
__declspec(align(8)) for Windows
tom-pytel 2c82071
shut up check-c-globals
tom-pytel 1ba50e9
alignment changes
tom-pytel 576aebf
MS_WINDOWS -> _MSC_VER
tom-pytel 4dd0954
Merge branch 'main' into fix-issue-128942-lockfree
tom-pytel d4e5313
#include "pycore_gc.h", something moved
tom-pytel 48eabe3
Merge branch 'main' into fix-issue-128942-lockfree
tom-pytel c056b13
Merge branch 'main' into fix-issue-128942-lockfree
tom-pytel affae8e
remove NULL check in arraydata_free()
tom-pytel 689c7a3
Merge branch 'main' into fix-issue-128942-lockfree
tom-pytel 3e2f8cd
Merge branch 'main' into fix-issue-128942-lockfree
tom-pytel 7286fed
Merge branch 'main' into fix-issue-128942-lockfree
tom-pytel 6550906
Merge branch 'main' into fix-issue-128942-lockfree
tom-pytel 5b35203
Merge branch 'main' into fix-issue-128942-lockfree
tom-pytel 15d92ca
Merge branch 'main' into fix-issue-128942-lockfree
tom-pytel 2e7132e
change to use new _Py_ALIGN_AS() macro
tom-pytel 06f86cf
Merge branch 'main' into fix-issue-128942-lockfree
tom-pytel d29c208
Merge branch 'main' into fix-issue-128942-lockfree
tom-pytel 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
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
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
1 change: 1 addition & 0 deletions
1
Misc/NEWS.d/next/Library/2025-03-02-21-08-05.gh-issue-128942.4MTI6s.rst
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Make :mod:`array` module safe under :term:`free threading`. |
Oops, something went wrong.
Oops, something went wrong.
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.