0
0
mirror of https://github.com/python/cpython.git synced 2024-11-25 09:39:56 +01:00
cpython/Programs
Sam Gross d061ffea7b
gh-123022: Fix crash with Py_Initialize in background thread (#123052)
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.
2024-08-17 16:04:08 -04:00
..
_bootstrap_python.c
_freeze_module.c
_freeze_module.py
_testembed.c gh-123022: Fix crash with Py_Initialize in background thread (#123052) 2024-08-17 16:04:08 -04:00
freeze_test_frozenmain.py
python.c
README
test_frozenmain.h GH-122390: Replace _Py_GetbaseOpcode with _Py_GetBaseCodeUnit (GH-122942) 2024-08-13 14:22:57 +01:00
test_frozenmain.py

Source files for binary executables (as opposed to shared modules)