Lines Matching refs:alloc_beg
570 uptr alloc_beg = reinterpret_cast<uptr>(allocated); in Allocate() local
571 uptr alloc_end = alloc_beg + needed_size; in Allocate()
572 uptr beg_plus_header = alloc_beg + kChunkHeaderSize; in Allocate()
580 m->from_memalign = alloc_beg != chunk_beg; in Allocate()
603 if (alloc_beg != chunk_beg) { in Allocate()
604 CHECK_LE(alloc_beg + sizeof(LargeChunkHeader), chunk_beg); in Allocate()
605 reinterpret_cast<LargeChunkHeader *>(alloc_beg)->Set(m); in Allocate()
641 void *alloc_beg = m->AllocBeg(); in Deallocate() local
642 if (alloc_beg != m) { in Deallocate()
645 reinterpret_cast<LargeChunkHeader *>(alloc_beg)->Set(nullptr); in Deallocate()
651 allocator.Deallocate(cache, alloc_beg); in Deallocate()
655 allocator.Deallocate(cache, alloc_beg); in Deallocate()
702 MemprofChunk *GetMemprofChunk(void *alloc_beg, u64 &user_requested_size) { in GetMemprofChunk()
703 if (!alloc_beg) in GetMemprofChunk()
705 MemprofChunk *p = reinterpret_cast<LargeChunkHeader *>(alloc_beg)->Get(); in GetMemprofChunk()
707 if (!allocator.FromPrimary(alloc_beg)) in GetMemprofChunk()
709 p = reinterpret_cast<MemprofChunk *>(alloc_beg); in GetMemprofChunk()
721 void *alloc_beg = allocator.GetBlockBegin(reinterpret_cast<void *>(p)); in GetMemprofChunkByAddr() local
722 return GetMemprofChunk(alloc_beg, user_requested_size); in GetMemprofChunkByAddr()