| 344 | } |
| 345 | |
| 346 | static bool |
| 347 | pages_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 | |
| 359 | bool |
| 360 | pages_huge(void *addr, size_t size) { |
no outgoing calls
no test coverage detected