]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-115999: Add free-threaded specialization for `STORE_SUBSCR` (#127169)
authorSam Gross <colesbury@gmail.com>
Tue, 26 Nov 2024 21:46:06 +0000 (21:46 +0000)
committerGitHub <noreply@github.com>
Tue, 26 Nov 2024 21:46:06 +0000 (16:46 -0500)
commit71ede1142ddad2d31cc966b8fe4a5aff664f4d53
treec8e17fd89be977bf04ffd1c01b352c4bbcb191f5
parentf0d3f10c43c9029378adba11a65b3d1287e4be32
gh-115999: Add free-threaded specialization for `STORE_SUBSCR` (#127169)

The specialization only depends on the type, so no special thread-safety
considerations there.

STORE_SUBSCR_LIST_INT needs to lock the list before modifying it.

`_PyDict_SetItem_Take2` already internally locks the dictionary using a
critical section.
Python/bytecodes.c
Python/ceval_macros.h
Python/executor_cases.c.h
Python/generated_cases.c.h
Python/specialize.c