mirror of
https://github.com/python/cpython.git
synced 2024-11-24 17:47:13 +01:00
412920a41e
This adds support for visiting abandoned pages in mimalloc and improves the performance of the page visiting code. Abandoned pages contain memory blocks from threads that have exited. At some point, they may be later reclaimed by other threads. We still need to visit those pages in the free-threaded GC because they contain live objects. This also reduces the overhead of visiting mimalloc pages: * Special cases for full, empty, and pages containing only a single block. * Fix free_map to use one bit instead of one byte per block. * Use fast integer division by a constant algorithm when computing block offset from block size and index. |
||
---|---|---|
.. | ||
prim | ||
alloc-aligned.c | ||
alloc-override.c | ||
alloc-posix.c | ||
alloc.c | ||
arena.c | ||
bitmap.c | ||
bitmap.h | ||
heap.c | ||
init.c | ||
options.c | ||
os.c | ||
page-queue.c | ||
page.c | ||
random.c | ||
segment-map.c | ||
segment.c | ||
static.c | ||
stats.c |