mirror of
https://github.com/python/cpython.git
synced 2026-01-03 22:12:27 +00:00
gh-124296: Remove private dictionary version tag (PEP 699) (#124472)
This commit is contained in:
parent
60ff67d010
commit
5aa91c56bf
13 changed files with 35 additions and 354 deletions
|
|
@ -14,16 +14,11 @@ typedef struct {
|
|||
/* Number of items in the dictionary */
|
||||
Py_ssize_t ma_used;
|
||||
|
||||
/* Dictionary version: globally unique, value change each time
|
||||
the dictionary is modified */
|
||||
#ifdef Py_BUILD_CORE
|
||||
/* Bits 0-7 are for dict watchers.
|
||||
/* This is a private field for CPython's internal use.
|
||||
* Bits 0-7 are for dict watchers.
|
||||
* Bits 8-11 are for the watched mutation counter (used by tier2 optimization)
|
||||
* The remaining bits (12-63) are the actual version tag. */
|
||||
uint64_t ma_version_tag;
|
||||
#else
|
||||
Py_DEPRECATED(3.12) uint64_t ma_version_tag;
|
||||
#endif
|
||||
* The remaining bits are not currently used. */
|
||||
uint64_t _ma_watcher_tag;
|
||||
|
||||
PyDictKeysObject *ma_keys;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue