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

[3.14] gh-144295: Fix data race in dict method lookup and global load (gh-144312)#144346

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 1 commit intopython:3.14fromcolesbury:backport-e666a01-3.14
Jan 30, 2026

Conversation

@colesbury
Copy link
Contributor

@colesburycolesbury commentedJan 30, 2026
edited by bedevere-appbot
Loading

In_Py_dict_lookup_threadsafe_stackref, callensure_shared_on_read() to
prevent a race between the lookup and concurrent dict resizes, which may free
the PyDictKeysObject (i.e., it ensures that the resize uses QSBR).

(cherry picked from commite666a01)

…l load (pythongh-144312)In `_PyDict_GetMethodStackRef`, only use the fast-path unicode lookupwhen the dict is owned by the current thread or already marked as shared.This prevents a race between the lookup and concurrent dict resizes,which may free the PyDictKeysObject (i.e., it ensures that the resizeuses QSBR).Address a similar issue in `_Py_dict_lookup_threadsafe_stackref` bycalling `ensure_shared_on_read()`.(cherry picked from commite666a01)Co-authored-by: Sam Gross <colesbury@gmail.com>
@colesburycolesbury merged commit06f9c8c intopython:3.14Jan 30, 2026
51 checks passed
@colesburycolesbury deleted the backport-e666a01-3.14 branchJanuary 30, 2026 17:15
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@methanemethaneAwaiting requested review from methanemethane is a code owner

@markshannonmarkshannonAwaiting requested review from markshannonmarkshannon is a code owner

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

@colesbury

[8]ページ先頭

©2009-2026 Movatter.jp