mirror of
https://github.com/python/cpython.git
synced 2026-05-07 05:01:13 -04:00
GH-100000: Cleanup and polish various watchers code (GH-99998)
* Initialize `type_watchers` array to `NULL`s * Optimize code watchers notification * Optimize func watchers notification
This commit is contained in:
@@ -461,6 +461,10 @@ interpreter_clear(PyInterpreterState *interp, PyThreadState *tstate)
|
||||
interp->dict_state.watchers[i] = NULL;
|
||||
}
|
||||
|
||||
for (int i=0; i < TYPE_MAX_WATCHERS; i++) {
|
||||
interp->type_watchers[i] = NULL;
|
||||
}
|
||||
|
||||
for (int i=0; i < FUNC_MAX_WATCHERS; i++) {
|
||||
interp->func_watchers[i] = NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user