fix invalid pointer detection in release mode (issue #1051 and #1053)

This commit is contained in:
Daan 2025-03-31 10:54:12 -07:00
parent a73c3cc7e2
commit 71b3e16171
4 changed files with 10 additions and 23 deletions

View file

@ -16,7 +16,7 @@ terms of the MIT license. A copy of the license can be found in the file
// Empty page used to initialize the small free pages array
const mi_page_t _mi_page_empty = {
MI_ATOMIC_VAR_INIT(MI_PAGE_IN_FULL_QUEUE), // xthread_id (must set flag to catch NULL on a free)
MI_ATOMIC_VAR_INIT(0), // xthread_id
NULL, // free
0, // used
0, // capacity