• Home
  • Raw
  • Download

Lines Matching refs:Memory

31     case Memory::MF_READ:  in getTestableEquivalent()
32 case Memory::MF_WRITE: in getTestableEquivalent()
33 case Memory::MF_READ|Memory::MF_WRITE: in getTestableEquivalent()
34 return Memory::MF_READ|Memory::MF_WRITE; in getTestableEquivalent()
35 case Memory::MF_READ|Memory::MF_EXEC: in getTestableEquivalent()
36 case Memory::MF_READ|Memory::MF_WRITE|Memory::MF_EXEC: in getTestableEquivalent()
37 case Memory::MF_EXEC: in getTestableEquivalent()
38 return Memory::MF_READ|Memory::MF_WRITE|Memory::MF_EXEC; in getTestableEquivalent()
41 return Memory::MF_READ|Memory::MF_WRITE; in getTestableEquivalent()
61 MemoryBlock M1 = Memory::allocateMappedMemory(sizeof(int), nullptr, Flags,EC); in TEST_P()
67 EXPECT_FALSE(Memory::releaseMappedMemory(M1)); in TEST_P()
72 MemoryBlock M1 = Memory::allocateMappedMemory(16, nullptr, Flags, EC); in TEST_P()
74 MemoryBlock M2 = Memory::allocateMappedMemory(64, nullptr, Flags, EC); in TEST_P()
76 MemoryBlock M3 = Memory::allocateMappedMemory(32, nullptr, Flags, EC); in TEST_P()
90 EXPECT_FALSE(Memory::releaseMappedMemory(M1)); in TEST_P()
91 EXPECT_FALSE(Memory::releaseMappedMemory(M3)); in TEST_P()
92 MemoryBlock M4 = Memory::allocateMappedMemory(16, nullptr, Flags, EC); in TEST_P()
96 EXPECT_FALSE(Memory::releaseMappedMemory(M4)); in TEST_P()
97 EXPECT_FALSE(Memory::releaseMappedMemory(M2)); in TEST_P()
103 !((Flags & Memory::MF_READ) && (Flags & Memory::MF_WRITE))) in TEST_P()
107 MemoryBlock M1 = Memory::allocateMappedMemory(sizeof(int), nullptr, Flags,EC); in TEST_P()
117 EXPECT_FALSE(Memory::releaseMappedMemory(M1)); in TEST_P()
123 !((Flags & Memory::MF_READ) && (Flags & Memory::MF_WRITE))) in TEST_P()
126 MemoryBlock M1 = Memory::allocateMappedMemory(sizeof(int), nullptr, Flags, in TEST_P()
129 MemoryBlock M2 = Memory::allocateMappedMemory(8 * sizeof(int), nullptr, Flags, in TEST_P()
132 MemoryBlock M3 = Memory::allocateMappedMemory(4 * sizeof(int), nullptr, Flags, in TEST_P()
162 EXPECT_FALSE(Memory::releaseMappedMemory(M1)); in TEST_P()
163 EXPECT_FALSE(Memory::releaseMappedMemory(M3)); in TEST_P()
165 MemoryBlock M4 = Memory::allocateMappedMemory(64 * sizeof(int), nullptr, in TEST_P()
173 EXPECT_FALSE(Memory::releaseMappedMemory(M4)); in TEST_P()
179 EXPECT_FALSE(Memory::releaseMappedMemory(M2)); in TEST_P()
184 MemoryBlock M1 = Memory::allocateMappedMemory(2 * sizeof(int), nullptr, Flags, in TEST_P()
187 MemoryBlock M2 = Memory::allocateMappedMemory(8 * sizeof(int), nullptr, Flags, in TEST_P()
190 MemoryBlock M3 = Memory::allocateMappedMemory(4 * sizeof(int), nullptr, Flags, in TEST_P()
201 EXPECT_FALSE(Memory::protectMappedMemory(M1, getTestableEquivalent(Flags))); in TEST_P()
202 EXPECT_FALSE(Memory::protectMappedMemory(M2, getTestableEquivalent(Flags))); in TEST_P()
203 EXPECT_FALSE(Memory::protectMappedMemory(M3, getTestableEquivalent(Flags))); in TEST_P()
222 EXPECT_FALSE(Memory::releaseMappedMemory(M1)); in TEST_P()
223 EXPECT_FALSE(Memory::releaseMappedMemory(M3)); in TEST_P()
226 MemoryBlock M4 = Memory::allocateMappedMemory(16, nullptr, Flags, EC); in TEST_P()
231 Memory::protectMappedMemory(M4, getTestableEquivalent(Flags))); in TEST_P()
235 EXPECT_FALSE(Memory::releaseMappedMemory(M4)); in TEST_P()
236 EXPECT_FALSE(Memory::releaseMappedMemory(M2)); in TEST_P()
241 MemoryBlock M1 = Memory::allocateMappedMemory(16, nullptr, Flags, EC); in TEST_P()
243 MemoryBlock M2 = Memory::allocateMappedMemory(64, &M1, Flags, EC); in TEST_P()
245 MemoryBlock M3 = Memory::allocateMappedMemory(32, &M2, Flags, EC); in TEST_P()
259 EXPECT_FALSE(Memory::releaseMappedMemory(M1)); in TEST_P()
260 EXPECT_FALSE(Memory::releaseMappedMemory(M3)); in TEST_P()
261 EXPECT_FALSE(Memory::releaseMappedMemory(M2)); in TEST_P()
267 MemoryBlock M1 = Memory::allocateMappedMemory(16, &Near, Flags, EC); in TEST_P()
269 MemoryBlock M2 = Memory::allocateMappedMemory(64, &Near, Flags, EC); in TEST_P()
271 MemoryBlock M3 = Memory::allocateMappedMemory(32, &Near, Flags, EC); in TEST_P()
281 EXPECT_FALSE(Memory::releaseMappedMemory(M1)); in TEST_P()
282 EXPECT_FALSE(Memory::releaseMappedMemory(M3)); in TEST_P()
283 EXPECT_FALSE(Memory::releaseMappedMemory(M2)); in TEST_P()
289 MemoryBlock M1 = Memory::allocateMappedMemory(16, &Near, Flags, EC); in TEST_P()
291 MemoryBlock M2 = Memory::allocateMappedMemory(64, &Near, Flags, EC); in TEST_P()
293 MemoryBlock M3 = Memory::allocateMappedMemory(32, &Near, Flags, EC); in TEST_P()
307 EXPECT_FALSE(Memory::releaseMappedMemory(M1)); in TEST_P()
308 EXPECT_FALSE(Memory::releaseMappedMemory(M3)); in TEST_P()
309 EXPECT_FALSE(Memory::releaseMappedMemory(M2)); in TEST_P()
315 MemoryBlock M1 = Memory::allocateMappedMemory(16, &Near, Flags, EC); in TEST_P()
317 MemoryBlock M2 = Memory::allocateMappedMemory(64, &Near, Flags, EC); in TEST_P()
319 MemoryBlock M3 = Memory::allocateMappedMemory(32, &Near, Flags, EC); in TEST_P()
333 EXPECT_FALSE(Memory::releaseMappedMemory(M1)); in TEST_P()
334 EXPECT_FALSE(Memory::releaseMappedMemory(M3)); in TEST_P()
335 EXPECT_FALSE(Memory::releaseMappedMemory(M2)); in TEST_P()
341 MemoryBlock M1 = Memory::allocateMappedMemory(15, &Near, Flags, EC); in TEST_P()
347 EXPECT_FALSE(Memory::releaseMappedMemory(M1)); in TEST_P()
353 Memory::MF_READ,
354 Memory::MF_WRITE,
355 Memory::MF_READ|Memory::MF_WRITE,
356 Memory::MF_EXEC,
357 Memory::MF_READ|Memory::MF_EXEC,
358 Memory::MF_READ|Memory::MF_WRITE|Memory::MF_EXEC