Searched refs:kAccessSize (Results 1 – 1 of 1) sorted by relevance
/frameworks/libs/binary_translation/tests/ndk_program_tests/ |
D | sigaltstack_test.cc | 31 constexpr size_t kAccessSize = 4096; variable 50 g_access_2 = mmap(nullptr, kAccessSize, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in HandleSignalOnAccess() 58 ASSERT_EQ(mprotect(g_access_1, kAccessSize, PROT_READ | PROT_WRITE), 0); in HandleSignalOnAccess() 65 ASSERT_EQ(mprotect(g_access_2, kAccessSize, PROT_READ | PROT_WRITE), 0); in HandleSignalOnAccess() 91 g_access_1 = mmap(nullptr, kAccessSize, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in TEST() 98 ASSERT_EQ(munmap(g_access_1, kAccessSize), 0); in TEST() 99 ASSERT_EQ(munmap(g_access_2, kAccessSize), 0); in TEST()
|