Lines Matching refs:alloc_beg
388 uptr alloc_beg = reinterpret_cast<uptr>(allocated); in Allocate() local
389 uptr alloc_end = alloc_beg + needed_size; in Allocate()
390 uptr beg_plus_redzone = alloc_beg + rz_size; in Allocate()
405 if (alloc_beg != chunk_beg) { in Allocate()
406 CHECK_LE(alloc_beg+ 2 * sizeof(uptr), chunk_beg); in Allocate()
407 reinterpret_cast<uptr *>(alloc_beg)[0] = kAllocBegMagic; in Allocate()
408 reinterpret_cast<uptr *>(alloc_beg)[1] = chunk_beg; in Allocate()
581 AsanChunk *GetAsanChunk(void *alloc_beg) { in GetAsanChunk()
582 if (!alloc_beg) return nullptr; in GetAsanChunk()
583 if (!allocator.FromPrimary(alloc_beg)) { in GetAsanChunk()
584 uptr *meta = reinterpret_cast<uptr *>(allocator.GetMetaData(alloc_beg)); in GetAsanChunk()
588 uptr *alloc_magic = reinterpret_cast<uptr *>(alloc_beg); in GetAsanChunk()
591 return reinterpret_cast<AsanChunk *>(alloc_beg); in GetAsanChunk()
595 void *alloc_beg = allocator.GetBlockBegin(reinterpret_cast<void *>(p)); in GetAsanChunkByAddr() local
596 return GetAsanChunk(alloc_beg); in GetAsanChunkByAddr()
601 void *alloc_beg = in GetAsanChunkByAddrFastLocked() local
603 return GetAsanChunk(alloc_beg); in GetAsanChunkByAddrFastLocked()