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

Function pages_huge_impl

deps/jemalloc/src/pages.c:346–357  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

344}
345
346static bool
347pages_huge_impl(void *addr, size_t size, bool aligned) {
348 if (aligned) {
349 assert(HUGEPAGE_ADDR2BASE(addr) == addr);
350 assert(HUGEPAGE_CEILING(size) == size);
351 }
352#ifdef JEMALLOC_HAVE_MADVISE_HUGE
353 return (madvise(addr, size, MADV_HUGEPAGE) != 0);
354#else
355 return true;
356#endif
357}
358
359bool
360pages_huge(void *addr, size_t size) {

Callers 2

pages_hugeFunction · 0.85
pages_huge_unalignedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected