diff options
author | Sam Gross <colesbury@gmail.com> | 2024-03-05 18:54:20 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-05 18:54:20 (GMT) |
commit | 72714c0266ce6d39c7c7fb63f617573b8f5a3cb2 (patch) | |
tree | 5542da152c1074e606ab1d058191c96b7217e594 /Include | |
parent | dab85e01898ae737ba6197199090a51a6d4dd1fb (diff) | |
download | cpython-72714c0266ce6d39c7c7fb63f617573b8f5a3cb2.zip cpython-72714c0266ce6d39c7c7fb63f617573b8f5a3cb2.tar.gz cpython-72714c0266ce6d39c7c7fb63f617573b8f5a3cb2.tar.bz2 |
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.
Diffstat (limited to 'Include')
-rw-r--r-- | Include/internal/pycore_mimalloc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/internal/pycore_mimalloc.h b/Include/internal/pycore_mimalloc.h index 14c9810..44c160b 100644 --- a/Include/internal/pycore_mimalloc.h +++ b/Include/internal/pycore_mimalloc.h @@ -27,7 +27,7 @@ typedef enum { # define MI_DEBUG_FREED PYMEM_DEADBYTE # define MI_DEBUG_PADDING PYMEM_FORBIDDENBYTE #ifdef Py_DEBUG -# define MI_DEBUG 1 +# define MI_DEBUG 2 #else # define MI_DEBUG 0 #endif |