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

Function mi_theap_alloc_new

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

Source from the content-addressed store, hash-verified

694
695
696mi_decl_nodiscard static mi_decl_restrict void* mi_theap_alloc_new(mi_theap_t* theap, size_t size) {
697 void* p = mi_theap_malloc(theap,size);
698 if mi_unlikely(p == NULL) return mi_theap_try_new(theap, size, false);
699 return p;
700}
701
702mi_decl_nodiscard mi_decl_restrict void* mi_new(size_t size) {
703 return mi_theap_alloc_new(_mi_theap_default(), size);

Callers 2

mi_newFunction · 0.85
alloc.cFile · 0.85

Calls 2

mi_theap_mallocFunction · 0.85
mi_theap_try_newFunction · 0.85

Tested by

no test coverage detected