SIGN IN SIGN UP

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.
S
Sam Gross committed
44e47dfba55a825ce7c340b1460cb493165353c9
Parent: 0f2fa61
Committed by GitHub <noreply@github.com> on 1/15/2024, 3:37:36 PM