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

Function _mi_os_free_aligned

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

Source from the content-addressed store, hash-verified

874}
875
876void _mi_os_free_aligned(void* p, size_t size, size_t alignment, size_t align_offset, bool was_committed, mi_stats_t* tld_stats) {
877 mi_assert(align_offset <= MI_SEGMENT_SIZE);
878 const size_t extra = _mi_align_up(align_offset, alignment) - align_offset;
879 void* start = (uint8_t*)p - extra;
880 _mi_os_free_ex(start, size + extra, was_committed, tld_stats);
881}
882
883/* -----------------------------------------------------------
884 OS memory API: reset, commit, decommit, protect, unprotect.

Callers 1

_mi_arena_freeFunction · 0.85

Calls 2

_mi_align_upFunction · 0.85
_mi_os_free_exFunction · 0.85

Tested by

no test coverage detected