Skip to content

Commit cc02eac

Browse files
committed
gh-121266: Remove Py_ALWAYS_INLINE in dictobject.c
compare_unicode_generic(), compare_unicode_unicode() and compare_generic() are callbacks used by do_lookup(). When enabling assertions, it's not possible to inline these functions.
1 parent 51da3df commit cc02eac

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎Objects/dictobject.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1092,7 +1092,7 @@ do_lookup(PyDictObject *mp, PyDictKeysObject *dk, PyObject *key, Py_hash_t hash,
10921092
Py_UNREACHABLE();
10931093
}
10941094

1095-
staticinlinePy_ALWAYS_INLINEint
1095+
staticinlineint
10961096
compare_unicode_generic(PyDictObject*mp, PyDictKeysObject*dk,
10971097
void*ep0, Py_ssize_tix, PyObject*key, Py_hash_thash)
10981098
{
@@ -1127,7 +1127,7 @@ unicodekeys_lookup_generic(PyDictObject *mp, PyDictKeysObject* dk, PyObject *key
11271127
returndo_lookup(mp, dk, key, hash, compare_unicode_generic);
11281128
}
11291129

1130-
staticinlinePy_ALWAYS_INLINEint
1130+
staticinlineint
11311131
compare_unicode_unicode(PyDictObject*mp, PyDictKeysObject*dk,
11321132
void*ep0, Py_ssize_tix, PyObject*key, Py_hash_thash)
11331133
{
@@ -1148,7 +1148,7 @@ unicodekeys_lookup_unicode(PyDictKeysObject* dk, PyObject *key, Py_hash_t hash)
11481148
returndo_lookup(NULL, dk, key, hash, compare_unicode_unicode);
11491149
}
11501150

1151-
staticinlinePy_ALWAYS_INLINEint
1151+
staticinlineint
11521152
compare_generic(PyDictObject*mp, PyDictKeysObject*dk,
11531153
void*ep0, Py_ssize_tix, PyObject*key, Py_hash_thash)
11541154
{

0 commit comments

Comments
 (0)