Lines Matching refs:Size
24 const scudo::uptr Size = 4 * scudo::getPageSizeCached(); in TEST() local
26 void *P = scudo::map(nullptr, Size, MappingName, MAP_NOACCESS, &Data); in TEST()
28 EXPECT_DEATH(memset(P, 0xaa, Size), ""); in TEST()
29 scudo::unmap(P, Size, UNMAP_ALL, &Data); in TEST()
33 const scudo::uptr Size = 4 * scudo::getPageSizeCached(); in TEST() local
34 void *P = scudo::map(nullptr, Size, MappingName, 0, nullptr); in TEST()
36 memset(P, 0xaa, Size); in TEST()
37 scudo::unmap(P, Size, 0, nullptr); in TEST()
38 EXPECT_DEATH(memset(P, 0xbb, Size), ""); in TEST()
43 const scudo::uptr Size = 4 * PageSize; in TEST() local
45 void *P = scudo::map(nullptr, Size + 2 * PageSize, MappingName, MAP_NOACCESS, in TEST()
50 EXPECT_EQ(scudo::map(Q, Size, MappingName, 0, &Data), Q); in TEST()
51 memset(Q, 0xaa, Size); in TEST()
52 EXPECT_DEATH(memset(Q, 0xaa, Size + 1), ""); in TEST()
53 scudo::unmap(P, Size + 2 * PageSize, UNMAP_ALL, &Data); in TEST()
58 const scudo::uptr Size = 4 * PageSize; in TEST() local
60 void *P = scudo::map(nullptr, Size, MappingName, MAP_NOACCESS, &Data); in TEST()
69 scudo::unmap(P, Size, UNMAP_ALL, &Data); in TEST()