Lines Matching refs:Memory
60 case Memory::MF_READ: in getTestableEquivalent()
61 case Memory::MF_WRITE: in getTestableEquivalent()
62 case Memory::MF_READ|Memory::MF_WRITE: in getTestableEquivalent()
63 return Memory::MF_READ|Memory::MF_WRITE; in getTestableEquivalent()
64 case Memory::MF_READ|Memory::MF_EXEC: in getTestableEquivalent()
65 case Memory::MF_READ|Memory::MF_WRITE|Memory::MF_EXEC: in getTestableEquivalent()
66 case Memory::MF_EXEC: in getTestableEquivalent()
67 return Memory::MF_READ|Memory::MF_WRITE|Memory::MF_EXEC; in getTestableEquivalent()
70 return Memory::MF_READ|Memory::MF_WRITE; in getTestableEquivalent()
91 if ((Flags & Memory::MF_WRITE) && (Flags & Memory::MF_EXEC) && \
99 MemoryBlock M1 = Memory::allocateMappedMemory(sizeof(int), nullptr, Flags,EC); in TEST_P()
105 EXPECT_FALSE(Memory::releaseMappedMemory(M1)); in TEST_P()
111 MemoryBlock M1 = Memory::allocateMappedMemory( in TEST_P()
112 sizeof(int), nullptr, Flags | Memory::MF_HUGE_HINT, EC); in TEST_P()
121 EXPECT_FALSE(Memory::releaseMappedMemory(M1)); in TEST_P()
127 MemoryBlock M1 = Memory::allocateMappedMemory(16, nullptr, Flags, EC); in TEST_P()
129 MemoryBlock M2 = Memory::allocateMappedMemory(64, nullptr, Flags, EC); in TEST_P()
131 MemoryBlock M3 = Memory::allocateMappedMemory(32, nullptr, Flags, EC); in TEST_P()
145 EXPECT_FALSE(Memory::releaseMappedMemory(M1)); in TEST_P()
146 EXPECT_FALSE(Memory::releaseMappedMemory(M3)); in TEST_P()
147 MemoryBlock M4 = Memory::allocateMappedMemory(16, nullptr, Flags, EC); in TEST_P()
151 EXPECT_FALSE(Memory::releaseMappedMemory(M4)); in TEST_P()
152 EXPECT_FALSE(Memory::releaseMappedMemory(M2)); in TEST_P()
158 !((Flags & Memory::MF_READ) && (Flags & Memory::MF_WRITE))) in TEST_P()
163 MemoryBlock M1 = Memory::allocateMappedMemory(sizeof(int), nullptr, Flags,EC); in TEST_P()
173 EXPECT_FALSE(Memory::releaseMappedMemory(M1)); in TEST_P()
179 !((Flags & Memory::MF_READ) && (Flags & Memory::MF_WRITE))) in TEST_P()
184 MemoryBlock M1 = Memory::allocateMappedMemory(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()
220 EXPECT_FALSE(Memory::releaseMappedMemory(M1)); in TEST_P()
221 EXPECT_FALSE(Memory::releaseMappedMemory(M3)); in TEST_P()
223 MemoryBlock M4 = Memory::allocateMappedMemory(64 * sizeof(int), nullptr, in TEST_P()
231 EXPECT_FALSE(Memory::releaseMappedMemory(M4)); in TEST_P()
237 EXPECT_FALSE(Memory::releaseMappedMemory(M2)); in TEST_P()
243 if ((Flags & Memory::MF_EXEC) && IsMPROTECT()) in TEST_P()
247 MemoryBlock M1 = Memory::allocateMappedMemory(2 * sizeof(int), nullptr, Flags, in TEST_P()
250 MemoryBlock M2 = Memory::allocateMappedMemory(8 * sizeof(int), nullptr, Flags, in TEST_P()
253 MemoryBlock M3 = Memory::allocateMappedMemory(4 * sizeof(int), nullptr, Flags, in TEST_P()
264 EXPECT_FALSE(Memory::protectMappedMemory(M1, getTestableEquivalent(Flags))); in TEST_P()
265 EXPECT_FALSE(Memory::protectMappedMemory(M2, getTestableEquivalent(Flags))); in TEST_P()
266 EXPECT_FALSE(Memory::protectMappedMemory(M3, getTestableEquivalent(Flags))); in TEST_P()
285 EXPECT_FALSE(Memory::releaseMappedMemory(M1)); in TEST_P()
286 EXPECT_FALSE(Memory::releaseMappedMemory(M3)); in TEST_P()
289 MemoryBlock M4 = Memory::allocateMappedMemory(16, nullptr, Flags, EC); in TEST_P()
294 Memory::protectMappedMemory(M4, getTestableEquivalent(Flags))); in TEST_P()
298 EXPECT_FALSE(Memory::releaseMappedMemory(M4)); in TEST_P()
299 EXPECT_FALSE(Memory::releaseMappedMemory(M2)); in TEST_P()
305 MemoryBlock M1 = Memory::allocateMappedMemory(16, nullptr, Flags, EC); in TEST_P()
307 MemoryBlock M2 = Memory::allocateMappedMemory(64, &M1, Flags, EC); in TEST_P()
309 MemoryBlock M3 = Memory::allocateMappedMemory(32, &M2, Flags, EC); in TEST_P()
323 EXPECT_FALSE(Memory::releaseMappedMemory(M1)); in TEST_P()
324 EXPECT_FALSE(Memory::releaseMappedMemory(M3)); in TEST_P()
325 EXPECT_FALSE(Memory::releaseMappedMemory(M2)); in TEST_P()
332 MemoryBlock M1 = Memory::allocateMappedMemory(16, &Near, Flags, EC); in TEST_P()
334 MemoryBlock M2 = Memory::allocateMappedMemory(64, &Near, Flags, EC); in TEST_P()
336 MemoryBlock M3 = Memory::allocateMappedMemory(32, &Near, Flags, EC); in TEST_P()
346 EXPECT_FALSE(Memory::releaseMappedMemory(M1)); in TEST_P()
347 EXPECT_FALSE(Memory::releaseMappedMemory(M3)); in TEST_P()
348 EXPECT_FALSE(Memory::releaseMappedMemory(M2)); in TEST_P()
355 MemoryBlock M1 = Memory::allocateMappedMemory(16, &Near, Flags, EC); in TEST_P()
357 MemoryBlock M2 = Memory::allocateMappedMemory(64, &Near, Flags, EC); in TEST_P()
359 MemoryBlock M3 = Memory::allocateMappedMemory(32, &Near, Flags, EC); in TEST_P()
373 EXPECT_FALSE(Memory::releaseMappedMemory(M1)); in TEST_P()
374 EXPECT_FALSE(Memory::releaseMappedMemory(M3)); in TEST_P()
375 EXPECT_FALSE(Memory::releaseMappedMemory(M2)); in TEST_P()
382 MemoryBlock M1 = Memory::allocateMappedMemory(16, &Near, Flags, EC); in TEST_P()
384 MemoryBlock M2 = Memory::allocateMappedMemory(64, &Near, Flags, EC); in TEST_P()
386 MemoryBlock M3 = Memory::allocateMappedMemory(32, &Near, Flags, EC); in TEST_P()
400 EXPECT_FALSE(Memory::releaseMappedMemory(M1)); in TEST_P()
401 EXPECT_FALSE(Memory::releaseMappedMemory(M3)); in TEST_P()
402 EXPECT_FALSE(Memory::releaseMappedMemory(M2)); in TEST_P()
409 MemoryBlock M1 = Memory::allocateMappedMemory(15, &Near, Flags, EC); in TEST_P()
415 EXPECT_FALSE(Memory::releaseMappedMemory(M1)); in TEST_P()
421 Memory::MF_READ,
422 Memory::MF_WRITE,
423 Memory::MF_READ|Memory::MF_WRITE,
424 Memory::MF_EXEC,
425 Memory::MF_READ|Memory::MF_EXEC,
426 Memory::MF_READ|Memory::MF_WRITE|Memory::MF_EXEC