mirror of
https://github.com/python/cpython.git
synced 2025-10-17 12:18:23 +00:00
gh-130373: Avoid locking in _LOAD_ATTR_WITH_HINT (#130372)
Avoid locking in _LOAD_ATTR_WITH_HINT
This commit is contained in:
parent
00f0771e4d
commit
2984ff9e51
6 changed files with 72 additions and 46 deletions
|
@ -150,6 +150,10 @@ extern int _PyDict_Pop_KnownHash(
|
|||
Py_hash_t hash,
|
||||
PyObject **result);
|
||||
|
||||
#ifdef Py_GIL_DISABLED
|
||||
PyAPI_FUNC(void) _PyDict_EnsureSharedOnRead(PyDictObject *mp);
|
||||
#endif
|
||||
|
||||
#define DKIX_EMPTY (-1)
|
||||
#define DKIX_DUMMY (-2) /* Used internally */
|
||||
#define DKIX_ERROR (-3)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue