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

Function _mi_heap_delayed_free_all

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

----------------------------------------------------------- Do any delayed frees (put there by other threads if they deallocated in a full page) ----------------------------------------------------------- */

Source from the content-addressed store, hash-verified

298 (put there by other threads if they deallocated in a full page)
299----------------------------------------------------------- */
300void _mi_heap_delayed_free_all(mi_heap_t* heap) {
301 while (!_mi_heap_delayed_free_partial(heap)) {
302 mi_atomic_yield();
303 }
304}
305
306// returns true if all delayed frees were processed
307bool _mi_heap_delayed_free_partial(mi_heap_t* heap) {

Callers 2

mi_heap_collect_exFunction · 0.85
mi_heap_absorbFunction · 0.85

Calls 2

mi_atomic_yieldFunction · 0.85

Tested by

no test coverage detected