diff options
author | Eric Snow <ericsnowcurrently@gmail.com> | 2023-03-09 01:04:16 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-09 01:04:16 (GMT) |
commit | 5e5acd291f4387876afc641163e9f8ae5c65086c (patch) | |
tree | b1ae91adf3e2ea87b110c6f1d95b265c084d7201 /Include/internal/pycore_dict_state.h | |
parent | 66ff374d4f353ae427c148d2a1d141d223303a82 (diff) | |
download | cpython-5e5acd291f4387876afc641163e9f8ae5c65086c.zip cpython-5e5acd291f4387876afc641163e9f8ae5c65086c.tar.gz cpython-5e5acd291f4387876afc641163e9f8ae5c65086c.tar.bz2 |
gh-100227: Move next_keys_version to PyInterpreterState (gh-102335)
https://github.com/python/cpython/issues/100227
Diffstat (limited to 'Include/internal/pycore_dict_state.h')
-rw-r--r-- | Include/internal/pycore_dict_state.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Include/internal/pycore_dict_state.h b/Include/internal/pycore_dict_state.h index 77375ea..c5142ee 100644 --- a/Include/internal/pycore_dict_state.h +++ b/Include/internal/pycore_dict_state.h @@ -14,7 +14,6 @@ struct _Py_dict_runtime_state { * It is incremented each time that a dictionary is created and each * time that a dictionary is modified. */ uint64_t global_version; - uint32_t next_keys_version; }; @@ -30,6 +29,8 @@ struct _Py_dict_runtime_state { #define DICT_MAX_WATCHERS 8 struct _Py_dict_state { + uint32_t next_keys_version; + #if PyDict_MAXFREELIST > 0 /* Dictionary reuse scheme to save calls to malloc and free */ PyDictObject *free_list[PyDict_MAXFREELIST]; @@ -37,6 +38,7 @@ struct _Py_dict_state { int numfree; int keys_numfree; #endif + PyDict_WatchCallback watchers[DICT_MAX_WATCHERS]; }; |