aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Python/bytecodes.c
diff options
context:
space:
mode:
authorKumar Aditya <kumaraditya@python.org>2025-07-04 09:04:47 +0530
committerGitHub <noreply@github.com>2025-07-04 09:04:47 +0530
commit85f092f541a2caf47e77b8510cbc720216e91e63 (patch)
treec56b0a5fa599ee5299db1d806c08d31f13a69d4d /Python/bytecodes.c
parent48cb9b61121f2ad58c2754faa1e92a20c47524e4 (diff)
downloadcpython-85f092f541a2caf47e77b8510cbc720216e91e63.tar.gz
cpython-85f092f541a2caf47e77b8510cbc720216e91e63.zip
gh-115999: remove redundant check in free-threading from `_STORE_ATTR_WITH_HINT` (#136249)
Diffstat (limited to 'Python/bytecodes.c')
-rw-r--r--Python/bytecodes.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/Python/bytecodes.c b/Python/bytecodes.c
index a5b74d88d7d..d9abc4c53d1 100644
--- a/Python/bytecodes.c
+++ b/Python/bytecodes.c
@@ -2641,12 +2641,6 @@ dummy_func(
PyDictObject *dict = _PyObject_GetManagedDict(owner_o);
DEOPT_IF(dict == NULL);
DEOPT_IF(!LOCK_OBJECT(dict));
- #ifdef Py_GIL_DISABLED
- if (dict != _PyObject_GetManagedDict(owner_o)) {
- UNLOCK_OBJECT(dict);
- DEOPT_IF(true);
- }
- #endif
assert(PyDict_CheckExact((PyObject *)dict));
PyObject *name = GETITEM(FRAME_CO_NAMES, oparg);
if (hint >= (size_t)dict->ma_keys->dk_nentries ||