Skip to content

Commit 674a246

Browse files
remove redundant check
1 parent e0245c7 commit 674a246

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

Python/bytecodes.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2641,12 +2641,6 @@ dummy_func(
26412641
PyDictObject *dict = _PyObject_GetManagedDict(owner_o);
26422642
DEOPT_IF(dict == NULL);
26432643
DEOPT_IF(!LOCK_OBJECT(dict));
2644-
#ifdef Py_GIL_DISABLED
2645-
if (dict != _PyObject_GetManagedDict(owner_o)) {
2646-
UNLOCK_OBJECT(dict);
2647-
DEOPT_IF(true);
2648-
}
2649-
#endif
26502644
assert(PyDict_CheckExact((PyObject *)dict));
26512645
PyObject *name = GETITEM(FRAME_CO_NAMES, oparg);
26522646
if (hint >= (size_t)dict->ma_keys->dk_nentries ||

0 commit comments

Comments
 (0)