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

Function mi_page_all_free

3rd/mimalloc-2.0.9/include/mimalloc-internal.h:591–594  ·  view source on GitHub ↗

are all blocks in a page freed? note: needs up-to-date used count, (as the `xthread_free` list may not be empty). see `_mi_page_collect_free`.

Source from the content-addressed store, hash-verified

589// are all blocks in a page freed?
590// note: needs up-to-date used count, (as the `xthread_free` list may not be empty). see `_mi_page_collect_free`.
591static inline bool mi_page_all_free(const mi_page_t* page) {
592 mi_assert_internal(page != NULL);
593 return (page->used == 0);
594}
595
596// are there any available blocks?
597static inline bool mi_page_has_any_available(const mi_page_t* page) {

Callers 7

mi_segment_page_clearFunction · 0.85
mi_segment_check_freeFunction · 0.85
mi_segment_reclaimFunction · 0.85
mi_heap_page_collectFunction · 0.85
_mi_page_freeFunction · 0.85
_mi_page_retireFunction · 0.85
_mi_heap_collect_retiredFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected