summaryrefslogtreecommitdiffstats
path: root/Python/pylifecycle.c
diff options
context:
space:
mode:
authorMark Shannon <mark@hotpy.org>2024-02-12 16:07:38 (GMT)
committerGitHub <noreply@github.com>2024-02-12 16:07:38 (GMT)
commit814466101790d4381ca4800c3d3b0cc0aad50c62 (patch)
tree6e4e71af88ab2951fe172a7e821e857606def6d6 /Python/pylifecycle.c
parent93ac78ac3ee124942bca7492149c3ff0003b6e30 (diff)
downloadcpython-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.c2
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);