mirror of
https://github.com/python/cpython
synced 2026-09-29 10:15:30 +03: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