Skip to content

Commit d29dc7c

Browse files
committed
pythongh-132519: fix excessive mem usage in QSBR with large blocks
1 parent be763e5 commit d29dc7c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Python/ceval_gil.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1350,6 +1350,9 @@ _Py_HandlePending(PyThreadState *tstate)
13501350
_Py_unset_eval_breaker_bit(tstate, _PY_EVAL_EXPLICIT_MERGE_BIT);
13511351
_Py_brc_merge_refcounts(tstate);
13521352
}
1353+
1354+
/* Keep memory usage down if QSBR freeing large blocks. */
1355+
_PyMem_ProcessDelayed(tstate);
13531356
#endif
13541357

13551358
/* GC scheduled to run */

0 commit comments

Comments
 (0)