Lines Matching refs:sys
23 using AllocationMap = DenseMap<unsigned, sys::MemoryBlock>; in allocate()
52 assert((SlabSize % sys::Process::getPageSizeEstimate()) == 0 && in allocate()
54 sys::MemoryBlock Slab(SlabStart, SlabSize); in allocate()
55 if (auto EC = sys::Memory::releaseMappedMemory(Slab)) in allocate()
65 if (auto EC = sys::Memory::protectMappedMemory(Block, Prot)) in allocate()
67 if (Prot & sys::Memory::MF_EXEC) in allocate()
68 sys::Memory::InvalidateInstructionCache(Block.base(), in allocate()
77 if (!isPowerOf2_64((uint64_t)sys::Process::getPageSizeEstimate())) in allocate()
82 const sys::Memory::ProtectionFlags ReadWrite = in allocate()
83 static_cast<sys::Memory::ProtectionFlags>(sys::Memory::MF_READ | in allocate()
84 sys::Memory::MF_WRITE); in allocate()
91 if (Seg.getAlignment() > sys::Process::getPageSizeEstimate()) in allocate()
96 TotalSize = alignTo(TotalSize, sys::Process::getPageSizeEstimate()); in allocate()
104 sys::Memory::allocateMappedMemory(TotalSize, nullptr, ReadWrite, EC); in allocate()
115 sys::Process::getPageSizeEstimate()); in allocate()
119 sys::MemoryBlock SegMem(SlabRemaining.base(), SegmentSize); in allocate()
120 SlabRemaining = sys::MemoryBlock((char *)SlabRemaining.base() + SegmentSize, in allocate()