mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
GH-113710: Fix updating of dict version tag and add watched dict stats (GH-115221)
This commit is contained in:
parent
93ac78ac3e
commit
8144661017
6 changed files with 22 additions and 23 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue