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();
|
abort();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
if (allocated > threshold0 && enabled && threshold0 && !collecting) {
|
if (allocated > threshold0 &&
|
||||||
|
enabled &&
|
||||||
|
threshold0 &&
|
||||||
|
!collecting &&
|
||||||
|
!PyErr_Occurred()) {
|
||||||
collecting++;
|
collecting++;
|
||||||
collect_generations();
|
collect_generations();
|
||||||
collecting--;
|
collecting--;
|
||||||
|
|
Loading…
Reference in New Issue