- do not start collection during processing of an exception

This commit is contained in:
Neil Schemenauer 2000-10-04 16:25:07 +00:00
parent 5196c586bb
commit 97d723bd62
1 changed files with 5 additions and 1 deletions

View File

@ -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--;