Searched refs:kPageSize (Results 1 – 3 of 3) 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()
2831 const auto kPageSize = sysconf(_SC_PAGE_SIZE); in TEST() local2838 void* page = mmap(nullptr, kPageSize, prot, MAP_ANON|MAP_PRIVATE, -1, 0); in TEST()2852 ASSERT_EQ(0, munmap(pages[i], kPageSize)); in TEST()2860 ASSERT_EQ(0, munmap(pages[i], kPageSize)); in TEST()