MCPcopy Create free account
hub / github.com/F-Stack/f-stack / bootstrap_calloc

Function bootstrap_calloc

app/redis-6.2.6/deps/jemalloc/src/jemalloc.c:268–279  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

a0iallocFunction · 0.85

Tested by

no test coverage detected