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

Function bootstrap_calloc

deps/memkind/src/jemalloc/src/jemalloc.c:267–278  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

265}
266
267void *
268bootstrap_calloc(size_t num, size_t size) {
269 size_t num_size;
270
271 num_size = num * size;
272 if (unlikely(num_size == 0)) {
273 assert(num == 0 || size == 0);
274 num_size = 1;
275 }
276
277 return a0ialloc(num_size, true, false);
278}
279
280void
281bootstrap_free(void *ptr) {

Callers

nothing calls this directly

Calls 1

a0iallocFunction · 0.70

Tested by

no test coverage detected