MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / dlpvalloc

Function dlpvalloc

dlmalloc/dlmalloc.c:4663–4668  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4661}
4662
4663void* dlpvalloc(size_t bytes) {
4664 size_t pagesz;
4665 init_mparams();
4666 pagesz = mparams.page_size;
4667 return dlmemalign(pagesz, (bytes + pagesz - SIZE_T_ONE) & ~(pagesz - SIZE_T_ONE));
4668}
4669
4670int dlmalloc_trim(size_t pad) {
4671 int result = 0;

Callers

nothing calls this directly

Calls 2

init_mparamsFunction · 0.85
dlmemalignFunction · 0.85

Tested by

no test coverage detected