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

Function salloc

src/storage.cpp:234–240  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

232}
233
234void *salloc(size_t cb, enum MALLOC_CLASS mclass)
235{
236 if (cb == 0)
237 cb = 1;
238
239 return memkind_malloc(kindFromClass(mclass), cb);
240}
241
242void *scalloc(size_t cb, size_t c, enum MALLOC_CLASS mclass)
243{

Callers

nothing calls this directly

Calls 2

memkind_mallocFunction · 0.85
kindFromClassFunction · 0.85

Tested by

no test coverage detected