]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-112532: Fix memory block count for free-threaded build (gh-113995)
authorSam Gross <colesbury@gmail.com>
Mon, 15 Jan 2024 15:37:36 +0000 (10:37 -0500)
committerGitHub <noreply@github.com>
Mon, 15 Jan 2024 15:37:36 +0000 (00:37 +0900)
commit44e47dfba55a825ce7c340b1460cb493165353c9
tree896871e2e41e3f81de629e27c10ab029d36de9db
parent0f2fa6150baf111a6c69d5d491c95c3c2ee60eaf
gh-112532: Fix memory block count for free-threaded build (gh-113995)

This fixes `_PyInterpreterState_GetAllocatedBlocks()` and
`_Py_GetGlobalAllocatedBlocks()` in the free-threaded builds. The
gh-113263 change that introduced multiple mimalloc heaps per-thread
broke the logic for counting the number of allocated blocks. For subtle
reasons, this led to reported reference count leaks in the refleaks
buildbots.
Objects/obmalloc.c