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

Function bootstrap_calloc

deps/jemalloc/src/jemalloc.c:274–285  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

272}
273
274void *
275bootstrap_calloc(size_t num, size_t size) {
276 size_t num_size;
277
278 num_size = num * size;
279 if (unlikely(num_size == 0)) {
280 assert(num == 0 || size == 0);
281 num_size = 1;
282 }
283
284 return a0ialloc(num_size, true, false);
285}
286
287void
288bootstrap_free(void *ptr) {

Callers

nothing calls this directly

Calls 1

a0iallocFunction · 0.70

Tested by

no test coverage detected