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

Function pages_nohuge_impl

deps/jemalloc/src/pages.c:369–381  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

367}
368
369static bool
370pages_nohuge_impl(void *addr, size_t size, bool aligned) {
371 if (aligned) {
372 assert(HUGEPAGE_ADDR2BASE(addr) == addr);
373 assert(HUGEPAGE_CEILING(size) == size);
374 }
375
376#ifdef JEMALLOC_HAVE_MADVISE_HUGE
377 return (madvise(addr, size, MADV_NOHUGEPAGE) != 0);
378#else
379 return false;
380#endif
381}
382
383bool
384pages_nohuge(void *addr, size_t size) {

Callers 2

pages_nohugeFunction · 0.85
pages_nohuge_unalignedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected