mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-07-07 11:58:41 +03:00
more documentation; better pairmap find_and_set_to_busy, busy flag is now 0x10
This commit is contained in:
parent
45f7fb559a
commit
afe9089152
5 changed files with 296 additions and 393 deletions
|
@ -44,7 +44,7 @@ static size_t mi_page_list_count(mi_page_t* page, mi_block_t* head) {
|
|||
mi_assert_internal(_mi_ptr_page(page) == page);
|
||||
size_t count = 0;
|
||||
while (head != NULL) {
|
||||
mi_assert_internal((uint8_t*)head - (uint8_t*)page > MI_LARGE_PAGE_SIZE || page == _mi_ptr_page(head));
|
||||
mi_assert_internal((uint8_t*)head - (uint8_t*)page > (ptrdiff_t)MI_LARGE_PAGE_SIZE || page == _mi_ptr_page(head));
|
||||
count++;
|
||||
head = mi_block_next(page, head);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue