mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
- do not start collection during processing of an exception
This commit is contained in:
parent
5196c586bb
commit
97d723bd62
1 changed files with 5 additions and 1 deletions
|
@ -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--;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue