| 315 | } |
| 316 | |
| 317 | static bool |
| 318 | pages_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 | |
| 330 | bool |
| 331 | pages_huge(void *addr, size_t size) { |
no outgoing calls
no test coverage detected