8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11ac6f5 commit b9f691aCopy full SHA for b9f691a
Include/internal/pycore_dict.h
@@ -142,6 +142,11 @@ struct _dictkeysobject {
142
/* Kind of keys */
143
uint8_t dk_kind;
144
145
+#ifdef Py_GIL_DISABLED
146
+ /* Lock used to protect shared keys */
147
+ PyMutex dk_mutex;
148
+#endif
149
+
150
/* Version number -- Reset to 0 by any modification to keys */
151
uint32_t dk_version;
152
@@ -151,6 +156,7 @@ struct _dictkeysobject {
156
/* Number of used entries in dk_entries. */
157
Py_ssize_t dk_nentries;
153
158
159
154
160
/* Actual hash table of dk_size entries. It holds indices in dk_entries,
155
161
or DKIX_EMPTY(-1) or DKIX_DUMMY(-2).
162
0 commit comments