mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-07-06 19:38:41 +03:00
maintain count in pagequeue for constant time test in free.c
This commit is contained in:
parent
e81ddcb786
commit
44a4c83fbf
6 changed files with 46 additions and 4 deletions
|
@ -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 */ \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue