diff options
author | Dino Viehland <dinoviehland@meta.com> | 2024-05-06 23:31:09 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-06 23:31:09 (GMT) |
commit | 636b8d94c91324c7e49a7cfe914f162690adf488 (patch) | |
tree | f0c2496f522a9493d50ce09483c96a3187162c0f /Include | |
parent | 430945db4c5589197c6d18462e89ca5ae9e38ba6 (diff) | |
download | cpython-636b8d94c91324c7e49a7cfe914f162690adf488.zip cpython-636b8d94c91324c7e49a7cfe914f162690adf488.tar.gz cpython-636b8d94c91324c7e49a7cfe914f162690adf488.tar.bz2 |
gh-112075: Fix race in constructing dict for instance (#118499)
Diffstat (limited to 'Include')
-rw-r--r-- | Include/internal/pycore_dict.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/internal/pycore_dict.h b/Include/internal/pycore_dict.h index 3ba8ee7..cb7d4c3 100644 --- a/Include/internal/pycore_dict.h +++ b/Include/internal/pycore_dict.h @@ -105,10 +105,10 @@ PyAPI_FUNC(PyObject *)_PyDict_LoadGlobal(PyDictObject *, PyDictObject *, PyObjec /* Consumes references to key and value */ PyAPI_FUNC(int) _PyDict_SetItem_Take2(PyDictObject *op, PyObject *key, PyObject *value); -extern int _PyObjectDict_SetItem(PyTypeObject *tp, PyObject **dictptr, PyObject *name, PyObject *value); extern int _PyDict_SetItem_LockHeld(PyDictObject *dict, PyObject *name, PyObject *value); extern int _PyDict_GetItemRef_Unicode_LockHeld(PyDictObject *op, PyObject *key, PyObject **result); extern int _PyDict_GetItemRef_KnownHash(PyDictObject *op, PyObject *key, Py_hash_t hash, PyObject **result); +extern int _PyObjectDict_SetItem(PyTypeObject *tp, PyObject *obj, PyObject **dictptr, PyObject *name, PyObject *value); extern int _PyDict_Pop_KnownHash( PyDictObject *dict, |