maintain count in pagequeue for constant time test in free.c

This commit is contained in:
daanx 2025-02-11 13:56:58 -08:00
parent e81ddcb786
commit 44a4c83fbf
6 changed files with 46 additions and 4 deletions

View file

@ -50,7 +50,7 @@ const mi_page_t _mi_page_empty = {
// Empty page queues for every bin
#define QNULL(sz) { NULL, NULL, (sz)*sizeof(uintptr_t) }
#define QNULL(sz) { NULL, NULL, 0, (sz)*sizeof(uintptr_t) }
#define MI_PAGE_QUEUES_EMPTY \
{ QNULL(1), \
QNULL( 1), QNULL( 2), QNULL( 3), QNULL( 4), QNULL( 5), QNULL( 6), QNULL( 7), QNULL( 8), /* 8 */ \