mirror of
https://github.com/python/cpython.git
synced 2025-07-08 03:45:36 +00:00
gh-115168: Add pystats counter for invalidated executors (GH-115169)
This commit is contained in:
parent
96c10c6485
commit
b05afdd5ec
11 changed files with 31 additions and 14 deletions
|
@ -405,7 +405,7 @@ globals_watcher_callback(PyDict_WatchEvent event, PyObject* dict,
|
|||
{
|
||||
RARE_EVENT_STAT_INC(watched_globals_modification);
|
||||
assert(get_mutations(dict) < _Py_MAX_ALLOWED_GLOBALS_MODIFICATIONS);
|
||||
_Py_Executors_InvalidateDependency(_PyInterpreterState_GET(), dict);
|
||||
_Py_Executors_InvalidateDependency(_PyInterpreterState_GET(), dict, 1);
|
||||
increment_mutations(dict);
|
||||
PyDict_Unwatch(GLOBALS_WATCHER_ID, dict);
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue