Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5196c58 commit 97d723bCopy full SHA for 97d723b
1 file changed
Modules/gcmodule.c
@@ -502,7 +502,11 @@ _PyGC_Insert(PyObject *op)
502
abort();
503
}
504
#endif
505
- if (allocated > threshold0 && enabled && threshold0 && !collecting) {
+ if (allocated > threshold0 &&
506
+ enabled &&
507
+ threshold0 &&
508
+ !collecting &&
509
+ !PyErr_Occurred()) {
510
collecting++;
511
collect_generations();
512
collecting--;
0 commit comments