8000 gh-132519: fix excessive mem usage in QSBR with large blocks by tom-pytel · Pull Request #132520 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
gh-132519: fix excessive mem usage in QSBR with large blocks
  • Loading branch information
tom-pytel committed Apr 14, 2025
commit d29dc7c80e58f7e6953e8b7b25fae68c4178dabc
3 changes: 3 additions & 0 deletions Python/ceval_gil.c
Original file line number Diff line number Diff line change
Expand Up @@ -1350,6 +1350,9 @@ _Py_HandlePending(PyThreadState *tstate)
_Py_unset_eval_breaker_bit(tstate, _PY_EVAL_EXPLICIT_MERGE_BIT);
_Py_brc_merge_refcounts(tstate);
}

/* Keep memory usage down if QSBR freeing large blocks. */
_PyMem_ProcessDelayed(tstate);
#endif

/* GC scheduled to run */
Expand Down
Loading
0