]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-152238: Revert gh-150490 and gh-152200. (gh-152232)
authorNeil Schemenauer <nas-github@arctrix.com>
Fri, 26 Jun 2026 18:20:41 +0000 (11:20 -0700)
committerGitHub <noreply@github.com>
Fri, 26 Jun 2026 18:20:41 +0000 (11:20 -0700)
commit9626ef87f42fca564c3a74109b370d38076a79da
tree6fc1876738d731c0c938a1089c4be741d8ef8e53
parent5a549e82b81378cb294904dab49cbee853bddd64
gh-152238: Revert gh-150490 and gh-152200. (gh-152232)

Revert commits:
    gh-151593: Fix dead lock in PyDict insert_split_key() (#152200)
    gh-150490: Raise PyType_Modified for insertion into split dictionary (#150489)

For gh-150489, it violates locking discipline and results in deadlocks,
gh-151593 is an example of it being hit in CI.  The attempted fix
gh-152200 avoids the deadlock but introduces a data-race.  The race
window is small but can be triggered with pure Python code.
12 files changed:
Include/internal/pycore_dict.h
Include/internal/pycore_opcode_metadata.h
Include/internal/pycore_uop_ids.h
Include/internal/pycore_uop_metadata.h
Modules/_testinternalcapi/test_cases.c.h
Objects/dictobject.c
Objects/typeobject.c
Python/bytecodes.c
Python/executor_cases.c.h
Python/generated_cases.c.h
Python/optimizer_cases.c.h
Python/specialize.c