diff options
author | Mark Shannon <mark@hotpy.org> | 2024-02-12 16:07:38 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-12 16:07:38 (GMT) |
commit | 814466101790d4381ca4800c3d3b0cc0aad50c62 (patch) | |
tree | 6e4e71af88ab2951fe172a7e821e857606def6d6 /Python/pylifecycle.c | |
parent | 93ac78ac3ee124942bca7492149c3ff0003b6e30 (diff) | |
download | cpython-814466101790d4381ca4800c3d3b0cc0aad50c62.zip cpython-814466101790d4381ca4800c3d3b0cc0aad50c62.tar.gz cpython-814466101790d4381ca4800c3d3b0cc0aad50c62.tar.bz2 |
GH-113710: Fix updating of dict version tag and add watched dict stats (GH-115221)
Diffstat (limited to 'Python/pylifecycle.c')
-rw-r--r-- | Python/pylifecycle.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/pylifecycle.c b/Python/pylifecycle.c index 61c9d4f..2300180 100644 --- a/Python/pylifecycle.c +++ b/Python/pylifecycle.c @@ -611,7 +611,7 @@ static int builtins_dict_watcher(PyDict_WatchEvent event, PyObject *dict, PyObject *key, PyObject *new_value) { PyInterpreterState *interp = _PyInterpreterState_GET(); - if (event != PyDict_EVENT_CLONED && interp->rare_events.builtin_dict < _Py_MAX_ALLOWED_BUILTINS_MODIFICATIONS) { + if (interp->rare_events.builtin_dict < _Py_MAX_ALLOWED_BUILTINS_MODIFICATIONS) { _Py_Executors_InvalidateAll(interp); } RARE_EVENT_INTERP_INC(interp, builtin_dict); |