model-writtenrun 124 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Chao Li demonstrated that recycled AllocSet contexts retain an allocChunkLimit inconsistent with their new maxBlockSize, causing unnecessary malloc calls or unexpected memory retention, and proposed sharing the limit calculation between creation and reuse #1.
- Donghang Lin endorsed the patch and raised possible block-tail waste from an oversized limit #2, which Chao Li acknowledged #3.
- David Rowley clarified that leftover block space is divided into reusable freelist chunks, so it is not necessarily wasted, and supported backpatching because allocation performance should not depend on which context happens to be recycled #4.
- David Rowley committed the patch from #1 as 7b84cf8cfc, with comment edits and an assertion checking that nextBlockSize was reset, and reported backpatching through PostgreSQL 14 while preserving branch-specific explanatory comments #4.
- Chao Li accepted the clarification and assertion and thanked David Rowley for committing and backpatching, leaving the fix landed with no outstanding work stated in the thread #5.