MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / mi_malloc

Function mi_malloc

system/lib/mimalloc/src/alloc.c:254–256  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

252}
253
254mi_decl_nodiscard mi_decl_restrict void* mi_malloc(size_t size) mi_attr_noexcept {
255 return mi_theap_malloc(_mi_theap_default(), size);
256}
257
258mi_decl_nodiscard mi_decl_restrict void* mi_heap_malloc(mi_heap_t* heap, size_t size) mi_attr_noexcept {
259 return mi_theap_malloc_zero_nonnull(_mi_heap_theap(heap), size, false, 0, NULL);

Callers 5

mi_new_nothrowFunction · 0.85
mi_wcsdupFunction · 0.85
mallocFunction · 0.85
_malloc_baseFunction · 0.85
zone_mallocFunction · 0.85

Calls 2

mi_theap_mallocFunction · 0.85
_mi_theap_defaultFunction · 0.85

Tested by

no test coverage detected