diff --git a/compiler-rt/lib/scudo/standalone/combined.h b/compiler-rt/lib/scudo/standalone/combined.h --- a/compiler-rt/lib/scudo/standalone/combined.h +++ b/compiler-rt/lib/scudo/standalone/combined.h @@ -1500,7 +1500,8 @@ AllocationRingBufferSize = 1; MapPlatformData Data = {}; RawRingBuffer = static_cast( - map(/*Addr=*/nullptr, ringBufferSizeInBytes(AllocationRingBufferSize), + map(/*Addr=*/nullptr, + roundUpTo(ringBufferSizeInBytes(AllocationRingBufferSize), getPageSizeCached()), "AllocatorRingBuffer", /*Flags=*/0, &Data)); auto *RingBuffer = reinterpret_cast(RawRingBuffer); RingBuffer->Size = AllocationRingBufferSize;