mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +00:00
* gh-112532: Isolate abandoned segments by interpreter Mimalloc segments are data structures that contain memory allocations along with metadata. Each segment is "owned" by a thread. When a thread exits, it abandons its segments to a global pool to be later reclaimed by other threads. This changes the pool to be per-interpreter instead of process-wide. This will be important for when we use mimalloc to find GC objects in the `--disable-gil` builds. We want heaps to only store Python objects from a single interpreter. Absent this change, the abandoning and reclaiming process could break this isolation. * Add missing '&_mi_abandoned_default' to 'tld_empty' |
||
|---|---|---|
| .. | ||
| 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 | ||