mirror of https://github.com/python/cpython
- do not start collection during processing of an exception
This commit is contained in:
parent
5196c586bb
commit
97d723bd62
|
@ -502,7 +502,11 @@ _PyGC_Insert(PyObject *op)
|
|||
abort();
|
||||
}
|
||||
#endif
|
||||
if (allocated > threshold0 && enabled && threshold0 && !collecting) {
|
||||
if (allocated > threshold0 &&
|
||||
enabled &&
|
||||
threshold0 &&
|
||||
!collecting &&
|
||||
!PyErr_Occurred()) {
|
||||
collecting++;
|
||||
collect_generations();
|
||||
collecting--;
|
||||
|
|
Loading…
Reference in New Issue