Lines Matching refs:CommitSize
35 uptr CommitSize; member
93 void mapSecondary(Options Options, uptr CommitBase, uptr CommitSize, in mapSecondary() argument
96 if (useMemoryTagging<Config>(Options) && CommitSize > MaxUnusedCacheBytes) { in mapSecondary()
101 CommitBase + CommitSize - UntaggedPos, "scudo:secondary", in mapSecondary()
104 map(reinterpret_cast<void *>(CommitBase), CommitSize, "scudo:secondary", in mapSecondary()
131 if (!canCache(H->CommitSize)) in store()
141 Entry.CommitSize = H->CommitSize; in store()
154 mapSecondary<Config>(Options, Entry.CommitBase, Entry.CommitSize, in store()
157 setMemoryPermission(Entry.CommitBase, Entry.CommitSize, MAP_NOACCESS, in store()
161 releasePagesToOS(Entry.CommitBase, 0, Entry.CommitSize, &Entry.Data); in store()
229 const uptr CommitSize = Entries[I].CommitSize; in retrieve() local
231 roundDownTo(CommitBase + CommitSize - Size, Alignment); in retrieve()
234 if (HeaderPos > CommitBase + CommitSize) in retrieve()
250 setMemoryPermission(Entry.CommitBase, Entry.CommitSize, 0, &Entry.Data); in retrieve()
263 (*H)->CommitSize = Entry.CommitSize; in retrieve()
315 setMemoryPermission(Entries[I].CommitBase, Entries[I].CommitSize, 0, in disableMemoryTagging()
353 uptr CommitSize; member
369 releasePagesToOS(Entry.CommitBase, 0, Entry.CommitSize, &Entry.Data); in releaseIfOlderThan()
418 return B->CommitBase + B->CommitSize; in getBlockEnd()
497 const uptr BlockEnd = H->CommitBase + H->CommitSize; in allocate()
554 const uptr CommitSize = MapEnd - PageSize - CommitBase; in allocate() local
555 const uptr AllocPos = roundDownTo(CommitBase + CommitSize - Size, Alignment); in allocate()
556 mapSecondary<Config>(Options, CommitBase, CommitSize, AllocPos, 0, &Data); in allocate()
567 H->CommitSize = CommitSize; in allocate()
570 *BlockEndPtr = CommitBase + CommitSize; in allocate()
574 AllocatedBytes += CommitSize; in allocate()
575 if (LargestSize < CommitSize) in allocate()
576 LargestSize = CommitSize; in allocate()
578 Stats.add(StatAllocated, CommitSize); in allocate()
587 const uptr CommitSize = H->CommitSize; in deallocate() local
591 FreedBytes += CommitSize; in deallocate()
593 Stats.sub(StatAllocated, CommitSize); in deallocate()