Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-117657: Fix data races when writing / readingob_gc_bits#118292

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
colesbury merged 4 commits intopython:mainfrommpage:gh-117657-tsan-gc-bits
May 8, 2024

Conversation

mpage
Copy link
Contributor

@mpagempage commentedApr 25, 2024
edited by bedevere-appbot
Loading

Use relaxed atomics when reading / writing to the field. There are still a few places in the GC where we do not use atomics. Those should be safe as the world is stopped.

Sample races reported by TSAN:

Use relaxed atomics when reading / writing to the field. There are still afew places in the GC where we do not use atomics. Those should be safe asthe world is stopped.Sample races reported by TSAN:* [Race between `_PyObject_GC_IS_SHARED()` and `_PyObject_GC_SET_SHARED()`](https://gist.github.com/mpage/ebfd022773f39c33bec68c0993a2249e)* [Race between `_PyObject_GC_TRACK()` and `_PyObject_GC_IS_SHARED()`](https://gist.github.com/mpage/b53b5c22a2f923bf1571b887bb31ef88)
@mpagempage requested a review fromDinoVApril 25, 2024 20:42
@mpagempage marked this pull request as ready for reviewMay 7, 2024 17:26
@mpagempage requested a review fromcolesburyMay 7, 2024 17:26
@colesburycolesbury added the needs backport to 3.13bugs and security fixes labelMay 8, 2024
@colesburycolesbury merged commitcb6f75a intopython:mainMay 8, 2024
@miss-islington-app
Copy link

Thanks@mpage for the PR, and@colesbury for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull requestMay 8, 2024
…ythonGH-118292)Use relaxed atomics when reading / writing to the field. There are still afew places in the GC where we do not use atomics. Those should be safe asthe world is stopped.(cherry picked from commitcb6f75a)Co-authored-by: mpage <mpage@meta.com>
@bedevere-app
Copy link

GH-118796 is a backport of this pull request to the3.13 branch.

@bedevere-appbedevere-appbot removed the needs backport to 3.13bugs and security fixes labelMay 8, 2024
colesbury pushed a commit that referenced this pull requestMay 8, 2024
…H-118292) (#118796)Use relaxed atomics when reading / writing to the field. There are still afew places in the GC where we do not use atomics. Those should be safe asthe world is stopped.(cherry picked from commitcb6f75a)Co-authored-by: mpage <mpage@meta.com>
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@colesburycolesburycolesbury approved these changes

@DinoVDinoVAwaiting requested review from DinoV

Assignees
No one assigned
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@mpage@colesbury

[8]ページ先頭

©2009-2025 Movatter.jp