]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-115103: Enable internal mimalloc assertions in debug builds (#116343)
authorSam Gross <colesbury@gmail.com>
Tue, 5 Mar 2024 18:54:20 +0000 (13:54 -0500)
committerGitHub <noreply@github.com>
Tue, 5 Mar 2024 18:54:20 +0000 (13:54 -0500)
commit72714c0266ce6d39c7c7fb63f617573b8f5a3cb2
tree5542da152c1074e606ab1d058191c96b7217e594
parentdab85e01898ae737ba6197199090a51a6d4dd1fb
gh-115103: Enable internal mimalloc assertions in debug builds (#116343)

This sets `MI_DEBUG` to `2` in debug builds to enable `mi_assert_internal()`
calls. Expensive internal assertions are not enabled.

This also disables an assertion in free-threaded builds that would be
triggered by the free-threaded GC because we traverse heaps that are not
owned by the current thread.
Include/internal/pycore_mimalloc.h
Objects/mimalloc/alloc.c