From 97d723bd6219f2d460a68137e5e23533888164c2 Mon Sep 17 00:00:00 2001 From: Neil Schemenauer Date: Wed, 4 Oct 2000 16:25:07 +0000 Subject: - do not start collection during processing of an exception --- Modules/gcmodule.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Modules/gcmodule.c b/Modules/gcmodule.c index cf88481..ba95032 100644 --- a/Modules/gcmodule.c +++ b/Modules/gcmodule.c @@ -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--; -- cgit v0.12