Searched refs:kPageSize (Results 1 – 4 of 4) sorted by relevance
60 static size_t kPageSize = sysconf(_SC_PAGE_SIZE); variable108 size_t n = kPageSize/sizeof(test_struct_larger) + 1 - 2; in TEST()123 size_t n = kPageSize/sizeof(test_struct_larger) - 1; in protect_all()
62 static size_t kPageSize = sysconf(_SC_PAGE_SIZE); variable168 reinterpret_cast<uintptr_t>(ptr1)/kPageSize != reinterpret_cast<uintptr_t>(ptr2)/kPageSize); in TEST()189 size_t n = kPageSize / sizeof(test_struct_large) + 1 - 2; in TEST()
40 static const size_t kPageSize = 4096; variable46 static const size_t kPreserveAlignment = kPageSize;311 if (program_header->p_align > kPageSize) { in ClampLoadSegmentAlignment()312 program_header->p_align = kPageSize; in ClampLoadSegmentAlignment()332 if (program_header->p_align == kPageSize) { in RestoreLoadSegmentAlignment()
2536 const auto kPageSize = sysconf(_SC_PAGE_SIZE); in TEST() local2543 void* page = mmap(nullptr, kPageSize, prot, MAP_ANON|MAP_PRIVATE, -1, 0); in TEST()2557 ASSERT_EQ(0, munmap(pages[i], kPageSize)); in TEST()2565 ASSERT_EQ(0, munmap(pages[i], kPageSize)); in TEST()