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

Function kindFromClass

src/storage.cpp:222–232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

220}
221
222static memkind_t kindFromClass(enum MALLOC_CLASS mclass)
223{
224 switch (mclass)
225 {
226 case MALLOC_SHARED:
227 return mkdisk;
228 default:
229 break;
230 }
231 return MEMKIND_DEFAULT;
232}
233
234void *salloc(size_t cb, enum MALLOC_CLASS mclass)
235{

Callers 3

sallocFunction · 0.85
scallocFunction · 0.85
sreallocFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected