diff options
author | Sam Gross <colesbury@gmail.com> | 2024-02-09 09:23:12 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-09 09:23:12 -0500 |
commit | 31633f4473966b3bcd470440bab7f348711be48f (patch) | |
tree | 6709b485b67d502baf3300a023fa6a068baa6db5 /Python/intrinsics.c | |
parent | 769d4448260aaec687d9306950225316f9faefce (diff) | |
download | cpython-31633f4473966b3bcd470440bab7f348711be48f.tar.gz cpython-31633f4473966b3bcd470440bab7f348711be48f.zip |
gh-115184: Fix refleak tracking issues in free-threaded build (#115188)
Fixes a few issues related to refleak tracking in the free-threaded build:
- Count blocks in abandoned segments
- Call `_mi_page_free_collect` earlier during heap traversal in order to get an accurate count of blocks in use.
- Add missing refcount tracking in `_Py_DecRefSharedDebug` and `_Py_ExplicitMergeRefcount`.
- Pause threads in `get_num_global_allocated_blocks` to ensure that traversing the mimalloc heaps is safe.
Diffstat (limited to 'Python/intrinsics.c')
0 files changed, 0 insertions, 0 deletions