mirror of https://github.com/python/cpython
gh-110752: Reset `ceval.eval_breaker` to 0 in `interpreter_clear` (GH-110753)
This commit is contained in:
parent
b6000d2874
commit
1e3460d9fa
|
@ -0,0 +1 @@
|
|||
Reset ``ceval.eval_breaker`` in :func:`interpreter_clear`
|
|
@ -890,6 +890,10 @@ interpreter_clear(PyInterpreterState *interp, PyThreadState *tstate)
|
|||
|
||||
Py_CLEAR(interp->audit_hooks);
|
||||
|
||||
// At this time, all the threads should be cleared so we don't need
|
||||
// atomic operations for eval_breaker
|
||||
interp->ceval.eval_breaker = 0;
|
||||
|
||||
for (int i = 0; i < _PY_MONITORING_UNGROUPED_EVENTS; i++) {
|
||||
interp->monitors.tools[i] = 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue