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

Function _mi_segment_cache_collect

3rd/mimalloc-2.0.9/src/segment-cache.c:172–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

170}
171
172void _mi_segment_cache_collect(bool force, mi_os_tld_t* tld) {
173 if (force) {
174 // called on `mi_collect(true)` but not on thread termination
175 _mi_segment_cache_free_all(tld);
176 }
177 else {
178 mi_segment_cache_purge(true /* visit all */, false /* don't force unexpired */, tld);
179 }
180}
181
182void _mi_segment_cache_free_all(mi_os_tld_t* tld) {
183 mi_commit_mask_t commit_mask;

Callers 1

mi_heap_collect_exFunction · 0.85

Calls 2

mi_segment_cache_purgeFunction · 0.85

Tested by

no test coverage detected