commit | 97d723bd6219f2d460a68137e5e23533888164c2 | [log] [tgz] |
---|---|---|
author | Neil Schemenauer <nascheme@enme.ucalgary.ca> | Wed Oct 04 16:25:07 2000 +0000 |
committer | Neil Schemenauer <nascheme@enme.ucalgary.ca> | Wed Oct 04 16:25:07 2000 +0000 |
tree | ddefd9616b61f22be76f1f4a26caad9e3f3c7b72 | |
parent | 5196c586bbcde40538868f8aa3a1f54af1027e33 [diff] [blame] |
- do not start collection during processing of an exception
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 @@ abort(); } #endif - if (allocated > threshold0 && enabled && threshold0 && !collecting) { + if (allocated > threshold0 && + enabled && + threshold0 && + !collecting && + !PyErr_Occurred()) { collecting++; collect_generations(); collecting--;