]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-115999: Specialize `LOAD_SUPER_ATTR` in free-threaded builds (gh-127128)
authorNeil Schemenauer <nas-github@arctrix.com>
Tue, 3 Dec 2024 17:32:26 +0000 (09:32 -0800)
committerGitHub <noreply@github.com>
Tue, 3 Dec 2024 17:32:26 +0000 (09:32 -0800)
commit0cb52220790d8bc70ec325fd89d52b5f3b7ad29c
treefb6d278b8932ce83053c9285638f76428a86f3d0
parent8ba9f5bca9c0ce6130e1f4ba761a68f74f8457d0
gh-115999: Specialize `LOAD_SUPER_ATTR` in free-threaded builds (gh-127128)

Use existing helpers to atomically modify the bytecode.  Add unit tests
to ensure specializing is happening as expected.  Add test_specialize.py
that can be used with ThreadSanitizer to detect data races.
Fix thread safety issue with cell_set_contents().
Lib/test/test_opcache.py
Objects/cellobject.c
Python/bytecodes.c
Python/ceval.c
Python/generated_cases.c.h
Python/specialize.c