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

Function mi_zalloc

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

Source from the content-addressed store, hash-verified

279}
280
281mi_decl_nodiscard mi_decl_restrict void* mi_zalloc(size_t size) mi_attr_noexcept {
282 return _mi_theap_malloc_zero(_mi_theap_default(), size, true, NULL);
283}
284
285mi_decl_nodiscard mi_decl_restrict void* mi_heap_zalloc(mi_heap_t* heap, size_t size) mi_attr_noexcept {
286 return mi_theap_malloc_zero_nonnull(_mi_heap_theap(heap), size, true, 0, NULL);

Callers 1

mi_theap_realpathFunction · 0.85

Calls 2

_mi_theap_malloc_zeroFunction · 0.85
_mi_theap_defaultFunction · 0.85

Tested by

no test coverage detected