Searched refs:HUGE_PAGE_SIZE (Results 1 – 3 of 3) sorted by relevance
| /oneTBB/src/tbbmalloc/ |
| H A D | MapMemory.h | 72 if (!isAligned(result, HUGE_PAGE_SIZE)) { in mmapTHP() 77 result = mmap_impl(bytes + HUGE_PAGE_SIZE); in mmapTHP() 88 if (!isAligned(result, HUGE_PAGE_SIZE)) { in mmapTHP() 90 offset = HUGE_PAGE_SIZE - ((uintptr_t)result & (HUGE_PAGE_SIZE - 1)); in mmapTHP() 98 munmap((void*)((uintptr_t)result + bytes), HUGE_PAGE_SIZE - offset); in mmapTHP() 108 …MALLOC_ASSERT(isAligned(result, HUGE_PAGE_SIZE), "Mapped address is not aligned on huge page size.… in mmapTHP() 127 …MALLOC_ASSERT((bytes % HUGE_PAGE_SIZE) == 0, "Mapping size should be divisible by huge page size"); in MapMemory() 133 …MALLOC_ASSERT((bytes % HUGE_PAGE_SIZE) == 0, "Mapping size should be divisible by huge page size"); in MapMemory()
|
| H A D | tbbmalloc_internal.h | 105 static const size_t HUGE_PAGE_SIZE = 2 * 1024 * 1024; variable 536 return HUGE_PAGE_SIZE; // the mode is not yet known; assume typical 2MB huge pages
|
| /oneTBB/test/tbbmalloc/ |
| H A D | test_malloc_whitebox.cpp | 1260 const int HUGE_PAGE_SIZE = 2 * 1024 * 1024; in TestTHP() local 1278 size_t allocSize = HUGE_PAGE_SIZE - (i * 1000); in TestTHP() 1284 REQUIRE_MESSAGE(allocSize == HUGE_PAGE_SIZE, in TestTHP() 1290 REQUIRE_MESSAGE(isAligned(allocPtrs[i], HUGE_PAGE_SIZE), in TestTHP() 1309 REQUIRE_MESSAGE(backend->freeRawMem(allocPtrs[i], HUGE_PAGE_SIZE), in TestTHP()
|