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

Function _mi_os_free_ex

3rd/mimalloc-2.0.9/src/os.c:816–822  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

814}
815
816void _mi_os_free_ex(void* p, size_t size, bool was_committed, mi_stats_t* tld_stats) {
817 MI_UNUSED(tld_stats);
818 mi_stats_t* stats = &_mi_stats_main;
819 if (size == 0 || p == NULL) return;
820 size = _mi_os_good_alloc_size(size);
821 mi_os_mem_free(p, size, was_committed, stats);
822}
823
824void _mi_os_free(void* p, size_t size, mi_stats_t* stats) {
825 _mi_os_free_ex(p, size, true, stats);

Callers 3

_mi_os_freeFunction · 0.85
_mi_os_free_alignedFunction · 0.85
mi_reserve_os_memory_exFunction · 0.85

Calls 2

_mi_os_good_alloc_sizeFunction · 0.85
mi_os_mem_freeFunction · 0.85

Tested by

no test coverage detected