mirror of
https://github.com/python/cpython.git
synced 2025-11-01 02:38:53 +00:00
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.
This commit is contained in:
parent
dab85e0189
commit
72714c0266
2 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue