MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / a0ialloc

Function a0ialloc

deps/jemalloc/src/jemalloc.c:234–242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

232 */
233
234static void *
235a0ialloc(size_t size, bool zero, bool is_internal) {
236 if (unlikely(malloc_init_a0())) {
237 return NULL;
238 }
239
240 return iallocztm(TSDN_NULL, size, sz_size2index(size), zero, NULL,
241 is_internal, arena_get(TSDN_NULL, 0, true), true);
242}
243
244static void
245a0idalloc(void *ptr, bool is_internal) {

Callers 3

a0mallocFunction · 0.70
bootstrap_mallocFunction · 0.70
bootstrap_callocFunction · 0.70

Calls 4

malloc_init_a0Function · 0.70
iallocztmFunction · 0.50
sz_size2indexFunction · 0.50
arena_getFunction · 0.50

Tested by

no test coverage detected