summaryrefslogtreecommitdiffstats
path: root/Python/ceval.c
diff options
context:
space:
mode:
authorNeil Schemenauer <nas-github@arctrix.com>2024-12-03 17:32:26 (GMT)
committerGitHub <noreply@github.com>2024-12-03 17:32:26 (GMT)
commit0cb52220790d8bc70ec325fd89d52b5f3b7ad29c (patch)
treefb6d278b8932ce83053c9285638f76428a86f3d0 /Python/ceval.c
parent8ba9f5bca9c0ce6130e1f4ba761a68f74f8457d0 (diff)
downloadcpython-0cb52220790d8bc70ec325fd89d52b5f3b7ad29c.zip
cpython-0cb52220790d8bc70ec325fd89d52b5f3b7ad29c.tar.gz
cpython-0cb52220790d8bc70ec325fd89d52b5f3b7ad29c.tar.bz2
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().
Diffstat (limited to 'Python/ceval.c')
-rw-r--r--Python/ceval.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/Python/ceval.c b/Python/ceval.c
index f9514a6..6795a16 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -28,7 +28,6 @@
#include "pycore_setobject.h" // _PySet_Update()
#include "pycore_sliceobject.h" // _PyBuildSlice_ConsumeRefs
#include "pycore_tuple.h" // _PyTuple_ITEMS()
-#include "pycore_typeobject.h" // _PySuper_Lookup()
#include "pycore_uop_ids.h" // Uops
#include "pycore_pyerrors.h"