| /openbsd-src/gnu/llvm/compiler-rt/lib/gwp_asan/ |
| H A D | guarded_pool_allocator.cpp | 30 size_t roundUpTo(size_t Size, size_t Boundary) { in roundUpTo() function 91 roundUpTo(State.MaxSimultaneousAllocations * sizeof(*Metadata), PageSize); in init() 96 BytesRequired = roundUpTo( in init() 150 roundUpTo(State.MaxSimultaneousAllocations * sizeof(*Metadata), in uninitTestOnly() 156 roundUpTo(State.MaxSimultaneousAllocations * sizeof(*FreeSlots), in uninitTestOnly() 258 roundUpTo(Size, PageSize)); in allocate()
|
| /openbsd-src/gnu/llvm/compiler-rt/lib/scudo/standalone/ |
| H A D | trusty.cpp | 40 Start = roundUpTo(ProgramBreak, SBRK_ALIGN); in map() 48 End = roundUpTo(Start + Size, SBRK_ALIGN); in map()
|
| H A D | release.h | 75 roundUpTo(BufferSize, getPageSizeCached())); in ~RegionPageMap() 102 roundUpTo(NumCounters, static_cast<uptr>(1U) << PackingRatioLog) >> in reset() 117 map(nullptr, roundUpTo(BufferSize, getPageSizeCached()), in reset() 263 PagesCount = roundUpTo(RegionSize, PageSize) / PageSize; in PageReleaseContext()
|
| H A D | wrappers_c_checks.h | 67 return roundUpTo(Size, PageSize) < Size; in checkForPvallocOverflow()
|
| H A D | secondary.h | 505 roundUpTo(roundUpTo(Size, Alignment) + LargeBlock::getHeaderSize() + in allocate() 554 CommitBase = roundUpTo(MapBase + PageSize + 1, Alignment) - PageSize; in allocate() 564 CommitBase + PageSize + roundUpTo(Size, PageSize) + PageSize; in allocate()
|
| H A D | combined.h | 345 roundUpTo(Size, MinAlignment) + 404 const uptr UserPtr = roundUpTo(UnalignedUserPtr, Alignment); 463 const uptr NextPage = roundUpTo(TaggedUserPtr, getPageSizeCached()); 476 Min(Size, roundUpTo(PrevEnd - TaggedUserPtr, 1244 uptr RoundOldPtr = roundUpTo(OldPtr, archMemoryTagGranuleSize()); in resizeTaggedChunk() 1249 RoundNewPtr = roundUpTo(NewPtr, archMemoryTagGranuleSize()); in resizeTaggedChunk() 1508 roundUpTo(ringBufferSizeInBytes(AllocationRingBufferSize), getPageSizeCached()), in initRingBuffer()
|
| H A D | vector.h | 85 NewCapacity = roundUpTo(NewCapacity * sizeof(T), getPageSizeCached()); in reallocate()
|
| H A D | chunk.h | 88 return roundUpTo(sizeof(PackedHeader), 1U << SCUDO_MIN_ALIGNMENT_LOG); in getHeaderSize()
|
| H A D | common.h | 30 inline constexpr uptr roundUpTo(uptr X, uptr Boundary) { in roundUpTo() function
|
| H A D | primary64.h | 57 ? roundUpTo(sizeof(TransferBatch), 1U << CompactPtrScale) in getSizeByClassId() 574 roundUpTo(TotalUserBytes - MappedUser, MapSizeIncrement); in populateFreeList()
|
| H A D | wrappers_c.inc | 135 size ? scudo::roundUpTo(size, PageSize) : PageSize,
|
| H A D | primary32.h | 335 Region = roundUpTo(MapBase, RegionSize); in allocateRegionSlow()
|
| /openbsd-src/gnu/llvm/compiler-rt/lib/scudo/standalone/tests/ |
| H A D | secondary_test.cpp | 67 scudo::roundUpTo(reinterpret_cast<scudo::uptr>(P), Align)); in testSecondaryBasic() 125 constexpr scudo::uptr HeaderSize = scudo::roundUpTo(8, MinAlign); in TEST_F() 134 scudo::roundUpTo((1U << SizeLog) + Delta, MinAlign); in TEST_F() 140 scudo::roundUpTo(reinterpret_cast<scudo::uptr>(P), Align)); in TEST_F()
|
| H A D | release_test.cpp | 241 scudo::uptr P = scudo::roundUpTo(CurrentFreeRangeStart, PageSize); in testReleaseFreeMemoryToOS() 257 scudo::uptr P = scudo::roundUpTo(CurrentFreeRangeStart, PageSize); in testReleaseFreeMemoryToOS() 259 scudo::roundUpTo(MaxBlocks * BlockSize, PageSize); in testReleaseFreeMemoryToOS()
|
| H A D | memtag_test.cpp | 166 EXPECT_EQ(roundUpTo(TaggedEnd, archMemoryTagGranuleSize()), in TEST_F()
|
| H A D | combined_test.cpp | 42 scudo::roundUpTo(Size, MinAlignment) + in isPrimaryAllocation() 51 Size = scudo::roundUpTo(Size, MinAlignment); in checkMemoryTaggingMaybe()
|