reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

unittests/Support/MemoryTest.cpp
   52     Flags = GetParam();
   97   CHECK_UNSUPPORTED();
   99   MemoryBlock M1 = Memory::allocateMappedMemory(sizeof(int), nullptr, Flags,EC);
  109   CHECK_UNSUPPORTED();
  112       sizeof(int), nullptr, Flags | Memory::MF_HUGE_HINT, EC);
  125   CHECK_UNSUPPORTED();
  127   MemoryBlock M1 = Memory::allocateMappedMemory(16, nullptr, Flags, EC);
  129   MemoryBlock M2 = Memory::allocateMappedMemory(64, nullptr, Flags, EC);
  131   MemoryBlock M3 = Memory::allocateMappedMemory(32, nullptr, Flags, EC);
  147   MemoryBlock M4 = Memory::allocateMappedMemory(16, nullptr, Flags, EC);
  157   if (Flags &&
  158       !((Flags & Memory::MF_READ) && (Flags & Memory::MF_WRITE)))
  158       !((Flags & Memory::MF_READ) && (Flags & Memory::MF_WRITE)))
  160   CHECK_UNSUPPORTED();
  163   MemoryBlock M1 = Memory::allocateMappedMemory(sizeof(int), nullptr, Flags,EC);
  178   if (Flags &&
  179       !((Flags & Memory::MF_READ) && (Flags & Memory::MF_WRITE)))
  179       !((Flags & Memory::MF_READ) && (Flags & Memory::MF_WRITE)))
  181   CHECK_UNSUPPORTED();
  184   MemoryBlock M1 = Memory::allocateMappedMemory(sizeof(int), nullptr, Flags,
  187   MemoryBlock M2 = Memory::allocateMappedMemory(8 * sizeof(int), nullptr, Flags,
  190   MemoryBlock M3 = Memory::allocateMappedMemory(4 * sizeof(int), nullptr, Flags,
  224                                                 Flags, EC);
  243   if ((Flags & Memory::MF_EXEC) && IsMPROTECT())
  247   MemoryBlock M1 = Memory::allocateMappedMemory(2 * sizeof(int), nullptr, Flags,
  250   MemoryBlock M2 = Memory::allocateMappedMemory(8 * sizeof(int), nullptr, Flags,
  253   MemoryBlock M3 = Memory::allocateMappedMemory(4 * sizeof(int), nullptr, Flags,
  264   EXPECT_FALSE(Memory::protectMappedMemory(M1, getTestableEquivalent(Flags)));
  265   EXPECT_FALSE(Memory::protectMappedMemory(M2, getTestableEquivalent(Flags)));
  266   EXPECT_FALSE(Memory::protectMappedMemory(M3, getTestableEquivalent(Flags)));
  289   MemoryBlock M4 = Memory::allocateMappedMemory(16, nullptr, Flags, EC);
  294             Memory::protectMappedMemory(M4, getTestableEquivalent(Flags)));
  303   CHECK_UNSUPPORTED();
  305   MemoryBlock M1 = Memory::allocateMappedMemory(16, nullptr, Flags, EC);
  307   MemoryBlock M2 = Memory::allocateMappedMemory(64, &M1, Flags, EC);
  309   MemoryBlock M3 = Memory::allocateMappedMemory(32, &M2, Flags, EC);
  329   CHECK_UNSUPPORTED();
  332   MemoryBlock M1 = Memory::allocateMappedMemory(16, &Near, Flags, EC);
  334   MemoryBlock M2 = Memory::allocateMappedMemory(64, &Near, Flags, EC);
  336   MemoryBlock M3 = Memory::allocateMappedMemory(32, &Near, Flags, EC);
  352   CHECK_UNSUPPORTED();
  355   MemoryBlock M1 = Memory::allocateMappedMemory(16, &Near, Flags, EC);
  357   MemoryBlock M2 = Memory::allocateMappedMemory(64, &Near, Flags, EC);
  359   MemoryBlock M3 = Memory::allocateMappedMemory(32, &Near, Flags, EC);
  379   CHECK_UNSUPPORTED();
  382   MemoryBlock M1 = Memory::allocateMappedMemory(16, &Near, Flags, EC);
  384   MemoryBlock M2 = Memory::allocateMappedMemory(64, &Near, Flags, EC);
  386   MemoryBlock M3 = Memory::allocateMappedMemory(32, &Near, Flags, EC);
  406   CHECK_UNSUPPORTED();
  409   MemoryBlock M1 = Memory::allocateMappedMemory(15, &Near, Flags, EC);