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

Function mi_heap_malloc

3rd/mimalloc-2.0.9/src/alloc.c:152–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150}
151
152mi_decl_nodiscard extern inline mi_decl_restrict void* mi_heap_malloc(mi_heap_t* heap, size_t size) mi_attr_noexcept {
153 return _mi_heap_malloc_zero(heap, size, false);
154}
155
156mi_decl_nodiscard extern inline mi_decl_restrict void* mi_malloc(size_t size) mi_attr_noexcept {
157 return mi_heap_malloc(mi_get_default_heap(), size);

Callers 12

heap_no_delete_workerFunction · 0.85
t1mainFunction · 0.85
test_heap_walkFunction · 0.85
test_heap_arenaFunction · 0.85
test_heapFunction · 0.85
mi_mallocFunction · 0.85
mi_heap_mallocnFunction · 0.85
_mi_heap_realloc_zeroFunction · 0.85
mi_heap_strdupFunction · 0.85
mi_heap_strndupFunction · 0.85
mi_heap_try_newFunction · 0.85
mi_heap_alloc_newFunction · 0.85

Calls 1

_mi_heap_malloc_zeroFunction · 0.85

Tested by 5

heap_no_delete_workerFunction · 0.68
t1mainFunction · 0.68
test_heap_walkFunction · 0.68
test_heap_arenaFunction · 0.68
test_heapFunction · 0.68