]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-145685: Stop the world when updating MRO of existing types (gh-145707)
authorSam Gross <colesbury@gmail.com>
Mon, 9 Mar 2026 22:41:07 +0000 (18:41 -0400)
committerGitHub <noreply@github.com>
Mon, 9 Mar 2026 22:41:07 +0000 (18:41 -0400)
commit0b65c88c2af6e09530a9aa21800771aa687371db
tree2e1f987f2b815abd70120c105782e100dda5152c
parent63eaaf95999c530cbd75b3addc3e660499d3adbe
gh-145685: Stop the world when updating MRO of existing types (gh-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.
Objects/typeobject.c