MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / mi_page_list_count

Function mi_page_list_count

3rd/mimalloc-2.0.9/src/page.c:43–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41
42#if (MI_DEBUG>=3)
43static size_t mi_page_list_count(mi_page_t* page, mi_block_t* head) {
44 size_t count = 0;
45 while (head != NULL) {
46 mi_assert_internal(page == _mi_ptr_page(head));
47 count++;
48 head = mi_block_next(page, head);
49 }
50 return count;
51}
52
53/*
54// Start of the page available memory

Callers 1

mi_page_is_valid_initFunction · 0.85

Calls 2

_mi_ptr_pageFunction · 0.85
mi_block_nextFunction · 0.85

Tested by

no test coverage detected