Lines Matching refs:info

337 size_t FreeListSpace::GetSlotIndexForAllocationInfo(const AllocationInfo* info) const {  in GetSlotIndexForAllocationInfo()
338 DCHECK_GE(info, allocation_info_); in GetSlotIndexForAllocationInfo()
339 DCHECK_LT(info, reinterpret_cast<AllocationInfo*>(allocation_info_map_.End())); in GetSlotIndexForAllocationInfo()
340 return info - allocation_info_; in GetSlotIndexForAllocationInfo()
419 void FreeListSpace::RemoveFreePrev(AllocationInfo* info) { in RemoveFreePrev() argument
420 CHECK_GT(info->GetPrevFree(), 0U); in RemoveFreePrev()
421 auto it = free_blocks_.lower_bound(info); in RemoveFreePrev()
423 CHECK_EQ(*it, info); in RemoveFreePrev()
431 AllocationInfo* info = GetAllocationInfoForAddress(reinterpret_cast<uintptr_t>(obj)); in Free() local
432 DCHECK(!info->IsFree()); in Free()
433 const size_t allocation_size = info->ByteSize(); in Free()
445 info->SetByteSize(allocation_size, true); // Mark as free. in Free()
447 AllocationInfo* next_info = info->GetNextInfo(); in Free()
450 size_t prev_free_bytes = info->GetPrevFreeBytes(); in Free()
455 RemoveFreePrev(info); in Free()
456 info = info->GetPrevFreeInfo(); in Free()
458 DCHECK_EQ(info->GetPrevFreeBytes(), 0U) << "Previous allocation was free"; in Free()
480 info->SetByteSize(new_free_size, true); in Free()
481 DCHECK_EQ(info->GetNextInfo(), new_free_info); in Free()
491 AllocationInfo* info = GetAllocationInfoForAddress(reinterpret_cast<uintptr_t>(obj)); in AllocationSize() local
492 DCHECK(!info->IsFree()); in AllocationSize()
493 size_t alloc_size = info->ByteSize(); in AllocationSize()
511 AllocationInfo* info = *it; in Alloc() local
514 new_info = info->GetPrevFreeInfo(); in Alloc()
516 info->SetPrevFreeBytes(info->GetPrevFreeBytes() - allocation_size); in Alloc()
517 if (info->GetPrevFreeBytes() > 0) { in Alloc()
518 AllocationInfo* new_free = info - info->GetPrevFree(); in Alloc()
520 new_free->SetByteSize(info->GetPrevFreeBytes(), true); in Alloc()
522 free_blocks_.insert(info); in Alloc()
585 const AllocationInfo* info = GetAllocationInfoForAddress(reinterpret_cast<uintptr_t>(obj)); in IsZygoteLargeObject() local
586 DCHECK(info != nullptr); in IsZygoteLargeObject()
587 return info->IsZygoteObject(); in IsZygoteLargeObject()