10000 gh-121266: Remove Py_ALWAYS_INLINE in dictobject.c (#121493) · python/cpython@c5a6b9a · GitHub
[go: up one dir, main page]

Skip to content

Commit c5a6b9a

Browse files
authored
gh-121266: Remove Py_ALWAYS_INLINE in dictobject.c (#121493)
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 81fd625 commit c5a6b9a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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-
static inline Py_ALWAYS_INLINE int
1095+
static inline int
10961096
compare_unicode_generic(PyDictObject *mp, PyDictKeysObject *dk,
10971097
void *ep0, Py_ssize_t ix, PyObject *key, Py_hash_t hash)
10981098
{
@@ -1127,7 +1127,7 @@ unicodekeys_lookup_generic(PyDictObject *mp, PyDictKeysObject* dk, PyObject *key
11271127
return do_lookup(mp, dk, key, hash, compare_unicode_generic);
11281128
}
11291129

1130-
static inline Py_ALWAYS_INLINE int
1130+
static inline int
11311131
compare_unicode_unicode(PyDictObject *mp, PyDictKeysObject *dk,
11321132
void *ep0, Py_ssize_t ix, PyObject *key, Py_hash_t hash)
11331133
{
@@ -1148,7 +1148,7 @@ unicodekeys_lookup_unicode(PyDictKeysObject* dk, PyObject *key, Py_hash_t hash)
11481148
return do_lookup(NULL, dk, key, hash, compare_unicode_unicode);
11491149
}
11501150

1151-
static inline Py_ALWAYS_INLINE int
1151+
static inline int
11521152
compare_generic(PyDictObject *mp, PyDictKeysObject *dk,
11531153
void *ep0, Py_ssize_t ix, PyObject *key, Py_hash_t hash)
11541154
{

0 commit comments

Comments
 (0)
0