10000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 92abb01 commit 2b2e75aCopy full SHA for 2b2e75a
Include/internal/pycore_dict.h
@@ -210,6 +210,8 @@ static inline PyDictUnicodeEntry* DK_UNICODE_ENTRIES(PyDictKeysObject *dk) {
210
#define DICT_VERSION_INCREMENT (1 << (DICT_MAX_WATCHERS + DICT_WATCHED_MUTATION_BITS))
211
#define DICT_WATCHER_MASK ((1 << DICT_MAX_WATCHERS) - 1)
212
213
+#define DICT_VALUES_USED_SIZE(values) ((uint8_t *)values)[-2]
214
+
215
#ifdef Py_GIL_DISABLED
216
#define DICT_NEXT_VERSION(INTERP) \
217
(_Py_atomic_add_uint64(&(INTERP)->dict_state.global_version, DICT_VERSION_INCREMENT) + DICT_VERSION_INCREMENT)
0 commit comments