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

Function mi_heap_reallocf

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

Reallocate but free `p` on errors

Source from the content-addressed store, hash-verified

469
470// Reallocate but free `p` on errors
471mi_decl_nodiscard void* mi_heap_reallocf(mi_heap_t* heap, void* p, size_t newsize) mi_attr_noexcept {
472 return mi_theap_reallocf(_mi_heap_theap(heap), p, newsize);
473}
474
475mi_decl_nodiscard void* mi_heap_rezalloc(mi_heap_t* heap, void* p, size_t newsize) mi_attr_noexcept {
476 return mi_theap_rezalloc(_mi_heap_theap(heap), p, newsize);

Callers

nothing calls this directly

Calls 2

mi_theap_reallocfFunction · 0.85
_mi_heap_theapFunction · 0.85

Tested by

no test coverage detected