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-145685: Stop the world when updating MRO of existing types#145707

Merged
colesbury merged 1 commit intopython:mainfrom
colesbury:gh-145685-stw-mro-update
Mar 9, 2026
Merged

gh-145685: Stop the world when updating MRO of existing types#145707
colesbury merged 1 commit intopython:mainfrom
colesbury:gh-145685-stw-mro-update

Conversation

@colesbury
Copy link
Contributor

@colesburycolesbury commentedMar 9, 2026
edited by bedevere-appbot
Loading

We already have a stop-the-world pause elsewhere in this code path (type_set_bases) and this makes will make it easier to avoid contention on the TYPE_LOCK when looking up names in the MRO hierarchy.

Also use deferred reference counting for non-immortal MROs.

stonebig reacted with heart emoji
We already have a stop-the-world pause elsewhere in this code path(type_set_bases) and this makes will make it easier to avoid contentionon the TYPE_LOCK when looking up names in the MRO hierarchy.Also use deferred reference counting for non-immortal MROs.
@colesburycolesbury merged commit0b65c88 intopython:mainMar 9, 2026
58 checks passed
@colesburycolesbury deleted the gh-145685-stw-mro-update branchMarch 9, 2026 22:41
@colesburycolesbury added the needs backport to 3.14bugs and security fixes labelMar 9, 2026
@miss-islington-app
Copy link

Thanks@colesbury for the PR 🌮🎉.. I'm working now to backport this PR to: 3.14.
🐍🍒⛏🤖

@miss-islington-app
Copy link

Sorry,@colesbury, I could not cleanly backport this to3.14 due to a conflict.
Please backport usingcherry_picker on command line.

cherry_picker 0b65c88c2af6e09530a9aa21800771aa687371db 3.14

colesbury added a commit to colesbury/cpython that referenced this pull requestMar 9, 2026
…types (pythongh-145707)We already have a stop-the-world pause elsewhere in this code path(type_set_bases) and this makes will make it easier to avoid contentionon the TYPE_LOCK when looking up names in the MRO hierarchy.Also use deferred reference counting for non-immortal MROs.(cherry picked from commit0b65c88)Co-authored-by: Sam Gross <colesbury@gmail.com>
@bedevere-app
Copy link

GH-145715 is a backport of this pull request to the3.14 branch.

@bedevere-appbedevere-appbot removed the needs backport to 3.14bugs and security fixes labelMar 9, 2026
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@mpagempagempage approved these changes

@markshannonmarkshannonAwaiting requested review from markshannonmarkshannon is a code owner

Assignees

@colesburycolesbury

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@colesbury@mpage

[8]ページ先頭

©2009-2026 Movatter.jp