mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
gh-104252: Immortalize Py_EMPTY_KEYS (gh-104253)
This was missed in gh-19474. It matters for with a per-interpreter GIL since PyDictKeysObject.dk_refcnt breaks isolation and leads to races.
This commit is contained in:
parent
2dcb289ed0
commit
b8f7ab5783
3 changed files with 27 additions and 14 deletions
|
@ -107,9 +107,7 @@ extern PyTypeObject _PyExc_MemoryError;
|
|||
}, \
|
||||
}, \
|
||||
.dtoa = _dtoa_state_INIT(&(INTERP)), \
|
||||
.dict_state = { \
|
||||
.next_keys_version = 2, \
|
||||
}, \
|
||||
.dict_state = _dict_state_INIT, \
|
||||
.func_state = { \
|
||||
.next_version = 1, \
|
||||
}, \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue