Lines Matching refs:MemGroup
39 uint8_t *SectionMemoryManager::allocateSection(MemoryGroup &MemGroup, in allocateSection() argument
52 for (FreeMemBlock &FreeMB : MemGroup.FreeMem) { in allocateSection()
61 MemGroup.PendingMem.push_back(sys::MemoryBlock((void *)Addr, Size)); in allocateSection()
65 FreeMB.PendingPrefixIndex = MemGroup.PendingMem.size() - 1; in allocateSection()
67 sys::MemoryBlock &PendingMB = MemGroup.PendingMem[FreeMB.PendingPrefixIndex]; in allocateSection()
88 &MemGroup.Near, in allocateSection()
98 MemGroup.Near = MB; in allocateSection()
101 MemGroup.AllocatedMem.push_back(MB); in allocateSection()
109 MemGroup.PendingMem.push_back(sys::MemoryBlock((void *)Addr, Size)); in allocateSection()
118 MemGroup.FreeMem.push_back(FreeMB); in allocateSection()
181 SectionMemoryManager::applyMemoryGroupPermissions(MemoryGroup &MemGroup, in applyMemoryGroupPermissions() argument
183 for (sys::MemoryBlock &MB : MemGroup.PendingMem) in applyMemoryGroupPermissions()
187 MemGroup.PendingMem.clear(); in applyMemoryGroupPermissions()
191 for (FreeMemBlock &FreeMB : MemGroup.FreeMem) { in applyMemoryGroupPermissions()
198 MemGroup.FreeMem.erase( in applyMemoryGroupPermissions()
199 std::remove_if(MemGroup.FreeMem.begin(), MemGroup.FreeMem.end(), in applyMemoryGroupPermissions()
201 MemGroup.FreeMem.end()); in applyMemoryGroupPermissions()