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

Function if

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

Source from the content-addressed store, hash-verified

220 page->is_zero = false;
221 }
222 else if (force) {
223 // append -- only on shutdown (force) as this is a linear operation
224 mi_block_t* tail = page->local_free;
225 mi_block_t* next;
226 while ((next = mi_block_next(page, tail)) != NULL) {
227 tail = next;
228 }
229 mi_block_set_next(page, tail, page->free);
230 page->free = page->local_free;
231 page->local_free = NULL;
232 page->is_zero = false;
233 }
234 }
235
236 mi_assert_internal(!force || page->local_free == NULL);

Callers

nothing calls this directly

Calls 2

mi_block_nextFunction · 0.85
mi_block_set_nextFunction · 0.85

Tested by

no test coverage detected