Home
last modified time | relevance | path

Searched refs:ChunkBeg (Results 1 – 1 of 1) sorted by relevance

/external/compiler-rt/lib/scudo/
Dscudo_allocator.cpp355 uptr ChunkBeg = AllocBeg + ChunkHeaderSize; in allocate() local
356 if (!IsAligned(ChunkBeg, Alignment)) in allocate()
357 ChunkBeg = RoundUpTo(ChunkBeg, Alignment); in allocate()
358 CHECK_LE(ChunkBeg + Size, AllocBeg + NeededSize); in allocate()
360 reinterpret_cast<ScudoChunk *>(ChunkBeg - ChunkHeaderSize); in allocate()
363 Header.Offset = (ChunkBeg - ChunkHeaderSize - AllocBeg) >> MinAlignmentLog; in allocate()
368 void *UserPtr = reinterpret_cast<void *>(ChunkBeg); in allocate()
384 uptr ChunkBeg = reinterpret_cast<uptr>(UserPtr); in deallocate() local
385 if (!IsAligned(ChunkBeg, MinAlignment)) { in deallocate()
390 reinterpret_cast<ScudoChunk *>(ChunkBeg - ChunkHeaderSize); in deallocate()
[all …]