X Tutup
Skip to content

[3.14] gh-145685: Stop the world when updating MRO of existing types (gh-145707)#145715

Open
colesbury wants to merge 1 commit intopython:3.14from
colesbury:backport-0b65c88-3.14
Open

[3.14] gh-145685: Stop the world when updating MRO of existing types (gh-145707)#145715
colesbury wants to merge 1 commit intopython:3.14from
colesbury:backport-0b65c88-3.14

Conversation

@colesbury
Copy link
Contributor

@colesbury colesbury commented Mar 9, 2026

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.
(cherry picked from commit 0b65c88)

…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 contention
on the TYPE_LOCK when looking up names in the MRO hierarchy.

Also use deferred reference counting for non-immortal MROs.
(cherry picked from commit 0b65c88)

Co-authored-by: Sam Gross <colesbury@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

X Tutup