summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorMark Shannon <mark@hotpy.org>2021-08-09 09:40:21 (GMT)
committerGitHub <noreply@github.com>2021-08-09 09:40:21 (GMT)
commitac75f6bdd4748b3378dd321f862d13aa1898f77a (patch)
treedacf952f54673797cd885c3da50e06dc358468ac /Objects
parentb854557b49083d8625a433eb36aacb0c87d67c52 (diff)
downloadcpython-ac75f6bdd4748b3378dd321f862d13aa1898f77a.zip
cpython-ac75f6bdd4748b3378dd321f862d13aa1898f77a.tar.gz
cpython-ac75f6bdd4748b3378dd321f862d13aa1898f77a.tar.bz2
bpo-44826: Specialize STORE_ATTR (GH-27590)
* Generalize cache names for LOAD_ATTR to allow store and delete specializations. * Factor out specialization of attribute dictionary access. * Specialize STORE_ATTR.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/dictobject.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/Objects/dictobject.c b/Objects/dictobject.c
index 5ad630f..c78cbaf 100644
--- a/Objects/dictobject.c
+++ b/Objects/dictobject.c
@@ -234,9 +234,7 @@ static PyObject* dict_iter(PyDictObject *dict);
/*Global counter used to set ma_version_tag field of dictionary.
* It is incremented each time that a dictionary is created and each
* time that a dictionary is modified. */
-static uint64_t pydict_global_version = 0;
-
-#define DICT_NEXT_VERSION() (++pydict_global_version)
+uint64_t _pydict_global_version = 0;
#include "clinic/dictobject.c.h"