Lines Matching defs:CommitBase

39   uptr CommitBase;
77 uptr CommitBase = 0;
83 bool isValid() { return CommitBase != 0; }
85 void invalidate() { CommitBase = 0; }
120 bool mapSecondary(const Options &Options, uptr CommitBase, uptr CommitSize,
132 const uptr TaggedSize = AllocPos - CommitBase;
135 return MemMap.remap(CommitBase, TaggedSize, "scudo:secondary",
142 return MemMap.remap(CommitBase, CommitSize, "scudo:secondary",
149 const uptr UntaggedPos = Max(AllocPos, CommitBase + MaxUnusedCacheBytes);
150 return MemMap.remap(CommitBase, UntaggedPos - CommitBase, "scudo:secondary",
152 MemMap.remap(UntaggedPos, CommitBase + CommitSize - UntaggedPos,
157 return MemMap.remap(CommitBase, CommitSize, "scudo:secondary", RemapFlags);
196 Entry.CommitBase, Entry.CommitBase + Entry.CommitSize,
228 Entry.CommitBase = H->CommitBase;
240 mapSecondary<Config>(Options, Entry.CommitBase, Entry.CommitSize,
241 Entry.CommitBase, MAP_NOACCESS, Entry.MemMap);
243 Entry.MemMap.setMemoryPermission(Entry.CommitBase, Entry.CommitSize,
247 Entry.MemMap.releaseAndZeroPagesToOS(Entry.CommitBase, Entry.CommitSize);
318 const uptr CommitBase = Entries[I].CommitBase;
321 roundDown(CommitBase + CommitSize - Size, Alignment);
323 if (HeaderPos > CommitBase + CommitSize)
325 if (HeaderPos < CommitBase ||
326 AllocPos > CommitBase + PageSize * MaxUnusedCachePages) {
330 const uptr Diff = HeaderPos - CommitBase;
334 (CommitBase + CommitSize - HeaderPos) / FragmentedBytesDivisor;
362 Entry.MemMap.setMemoryPermission(Entry.CommitBase, Entry.CommitSize, 0);
366 storeTags(LargeBlock::addHeaderTag<Config>(Entry.CommitBase),
374 (*H)->CommitBase = Entry.CommitBase;
423 Entries[I].MemMap.setMemoryPermission(Entries[I].CommitBase,
466 Entry.MemMap.releaseAndZeroPagesToOS(Entry.CommitBase, Entry.CommitSize);
517 return B->CommitBase + B->CommitSize;
604 const uptr BlockEnd = H->CommitBase + H->CommitSize;
644 uptr CommitBase = MapBase + PageSize;
653 CommitBase = roundUp(MapBase + PageSize + 1, Alignment) - PageSize;
654 const uptr NewMapBase = CommitBase - PageSize;
663 CommitBase + PageSize + roundUp(Size, PageSize) + PageSize;
671 const uptr CommitSize = MapEnd - PageSize - CommitBase;
672 const uptr AllocPos = roundDown(CommitBase + CommitSize - Size, Alignment);
673 if (!mapSecondary<Config>(Options, CommitBase, CommitSize, AllocPos, 0,
682 storeTags(LargeBlock::addHeaderTag<Config>(CommitBase),
684 H->CommitBase = CommitBase;
688 *BlockEndPtr = CommitBase + CommitSize;