Lines Matching refs:FreeMB
52 for (FreeMemBlock &FreeMB : MemGroup.FreeMem) { in allocateSection()
53 if (FreeMB.Free.size() >= RequiredSize) { in allocateSection()
54 Addr = (uintptr_t)FreeMB.Free.base(); in allocateSection()
55 uintptr_t EndOfBlock = Addr + FreeMB.Free.size(); in allocateSection()
59 if (FreeMB.PendingPrefixIndex == (unsigned)-1) { in allocateSection()
65 FreeMB.PendingPrefixIndex = MemGroup.PendingMem.size() - 1; in allocateSection()
67 sys::MemoryBlock &PendingMB = MemGroup.PendingMem[FreeMB.PendingPrefixIndex]; in allocateSection()
72 FreeMB.Free = sys::MemoryBlock((void *)(Addr + Size), EndOfBlock - Addr - Size); in allocateSection()
115 FreeMemBlock FreeMB; in allocateSection() local
116 FreeMB.Free = sys::MemoryBlock((void*)(Addr + Size), FreeSize); in allocateSection()
117 FreeMB.PendingPrefixIndex = (unsigned)-1; in allocateSection()
118 MemGroup.FreeMem.push_back(FreeMB); in allocateSection()
191 for (FreeMemBlock &FreeMB : MemGroup.FreeMem) { in applyMemoryGroupPermissions()
192 FreeMB.Free = trimBlockToPageSize(FreeMB.Free); in applyMemoryGroupPermissions()
194 FreeMB.PendingPrefixIndex = (unsigned)-1; in applyMemoryGroupPermissions()
200 [](FreeMemBlock &FreeMB) { return FreeMB.Free.size() == 0; }), in applyMemoryGroupPermissions() argument