Lines Matching refs:alloc_beg
396 uptr alloc_beg = reinterpret_cast<uptr>(allocated); in Allocate() local
397 uptr alloc_end = alloc_beg + needed_size; in Allocate()
398 uptr beg_plus_header = alloc_beg + kChunkHeaderSize; in Allocate()
406 m->from_memalign = alloc_beg != chunk_beg; in Allocate()
429 if (alloc_beg != chunk_beg) { in Allocate()
430 CHECK_LE(alloc_beg + sizeof(LargeChunkHeader), chunk_beg); in Allocate()
431 reinterpret_cast<LargeChunkHeader *>(alloc_beg)->Set(m); in Allocate()
465 void *alloc_beg = m->AllocBeg(); in Deallocate() local
466 if (alloc_beg != m) { in Deallocate()
469 reinterpret_cast<LargeChunkHeader *>(alloc_beg)->Set(nullptr); in Deallocate()
475 allocator.Deallocate(cache, alloc_beg); in Deallocate()
479 allocator.Deallocate(cache, alloc_beg); in Deallocate()
526 MemprofChunk *GetMemprofChunk(void *alloc_beg, u64 &user_requested_size) { in GetMemprofChunk()
527 if (!alloc_beg) in GetMemprofChunk()
529 MemprofChunk *p = reinterpret_cast<LargeChunkHeader *>(alloc_beg)->Get(); in GetMemprofChunk()
531 if (!allocator.FromPrimary(alloc_beg)) in GetMemprofChunk()
533 p = reinterpret_cast<MemprofChunk *>(alloc_beg); in GetMemprofChunk()
545 void *alloc_beg = allocator.GetBlockBegin(reinterpret_cast<void *>(p)); in GetMemprofChunkByAddr() local
546 return GetMemprofChunk(alloc_beg, user_requested_size); in GetMemprofChunkByAddr()