mirror of https://github.com/python/cpython
ff58c3cb48
Check that the current default heap is initialized in
`_mi_os_get_aligned_hint` and `mi_os_claim_huge_pages`.
The mimalloc function `_mi_os_get_aligned_hint` assumes that there is an
initialized default heap. This is true for our main thread, but not for
background threads. The problematic code path is usually called during
initialization (i.e., `Py_Initialize`), but it may also be called if the
program allocates large amounts of memory in total.
The crash only affected the free-threaded build.
(cherry picked from commit
|
||
---|---|---|
.. | ||
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 |