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

Function pages_huge_impl

app/redis-6.2.6/deps/jemalloc/src/pages.c:317–328  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

315}
316
317static bool
318pages_huge_impl(void *addr, size_t size, bool aligned) {
319 if (aligned) {
320 assert(HUGEPAGE_ADDR2BASE(addr) == addr);
321 assert(HUGEPAGE_CEILING(size) == size);
322 }
323#ifdef JEMALLOC_HAVE_MADVISE_HUGE
324 return (madvise(addr, size, MADV_HUGEPAGE) != 0);
325#else
326 return true;
327#endif
328}
329
330bool
331pages_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