Lines Matching refs:ChunkBeg
355 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()
436 uptr ChunkBeg = reinterpret_cast<uptr>(Ptr); in getUsableSize() local
438 reinterpret_cast<ScudoChunk *>(ChunkBeg - ChunkHeaderSize); in getUsableSize()
470 uptr ChunkBeg = reinterpret_cast<uptr>(OldPtr); in reallocate() local
472 reinterpret_cast<ScudoChunk *>(ChunkBeg - ChunkHeaderSize); in reallocate()