Commit 97d723bd authored by Neil Schemenauer's avatar Neil Schemenauer

- do not start collection during processing of an exception

parent 5196c586
...@@ -502,7 +502,11 @@ _PyGC_Insert(PyObject *op) ...@@ -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--;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment