@@ -1264,7 +1264,7 @@ insert_into_dictkeys(PyDictKeysObject *keys, PyObject *name)
1264
1264
1265
1265
1266
1266
static inline int
1267
- insert_unsplit_dict (PyInterpreterState * interp , PyDictObject * mp ,
1267
+ insert_combined_dict (PyInterpreterState * interp , PyDictObject * mp ,
1268
1268
Py_hash_t hash , PyObject * key , PyObject * value , int unicode )
1269
1269
{
1270
1270
if (mp -> ma_keys -> dk_usable <= 0 ) {
@@ -1311,7 +1311,7 @@ insert_split_dict(PyInterpreterState *interp, PyDictObject *mp,
1311
1311
assert (!_PyDict_HasSplitTable (mp ));
1312
1312
assert (DK_IS_UNICODE (keys ));
1313
1313
UNLOCK_KEYS (keys );
1314
- return insert_unsplit_dict (interp , mp , hash , key , value , 1 );
1314
+ return insert_combined_dict (interp , mp , hash , key , value , 1 );
1315
1315
}
1316
1316
1317
1317
Py_ssize_t hashpos = find_empty_slot (keys , hash );
@@ -1390,7 +1390,7 @@ insertdict(PyInterpreterState *interp, PyDictObject *mp,
1390
1390
1391
1391
int unicode = DK_IS_UNICODE (mp -> ma_keys );
1392
1392
if (!unicode || !_PyDict_HasSplitTable (mp )) {
1393
- if (insert_unsplit_dict (interp , mp , hash , key , value , unicode ) < 0 ) {
1393
+ if (insert_combined_dict (interp , mp , hash , key , value , unicode ) < 0 ) {
1394
1394
goto Fail ;
1395
1395
}
1396
1396
} else {
@@ -3536,7 +3536,7 @@ PyDict_SetDefault(PyObject *d, PyObject *key, PyObject *defaultobj)
3536
3536
3537
3537
int unicode = DK_IS_UNICODE (mp -> ma_keys );
3538
3538
if (!unicode || !_PyDict_HasSplitTable (mp )) {
3539
- if (insert_unsplit_dict (interp , mp , hash , Py_NewRef (key ), Py_NewRef (value ), unicode ) < 0 ) {
3539
+ if (insert_combined_dict (interp , mp , hash , Py_NewRef (key ), Py_NewRef (value ), unicode ) < 0 ) {
3540
3540
Py_DECREF (key );
3541
3541
4089
Py_DECREF (value );
3542
3542
return NULL ;
0 commit comments