Lines Matching refs:info

326 size_t FreeListSpace::GetSlotIndexForAllocationInfo(const AllocationInfo* info) const {  in GetSlotIndexForAllocationInfo()
327 DCHECK_GE(info, allocation_info_); in GetSlotIndexForAllocationInfo()
328 DCHECK_LT(info, reinterpret_cast<AllocationInfo*>(allocation_info_map_->End())); in GetSlotIndexForAllocationInfo()
329 return info - allocation_info_; in GetSlotIndexForAllocationInfo()
396 void FreeListSpace::RemoveFreePrev(AllocationInfo* info) { in RemoveFreePrev() argument
397 CHECK_GT(info->GetPrevFree(), 0U); in RemoveFreePrev()
398 auto it = free_blocks_.lower_bound(info); in RemoveFreePrev()
400 CHECK_EQ(*it, info); in RemoveFreePrev()
409 AllocationInfo* info = GetAllocationInfoForAddress(reinterpret_cast<uintptr_t>(obj)); in Free() local
410 DCHECK(!info->IsFree()); in Free()
411 const size_t allocation_size = info->ByteSize(); in Free()
414 info->SetByteSize(allocation_size, true); // Mark as free. in Free()
416 AllocationInfo* next_info = info->GetNextInfo(); in Free()
419 size_t prev_free_bytes = info->GetPrevFreeBytes(); in Free()
424 RemoveFreePrev(info); in Free()
425 info = info->GetPrevFreeInfo(); in Free()
427 DCHECK_EQ(info->GetPrevFreeBytes(), 0U) << "Previous allocation was free"; in Free()
449 info->SetByteSize(new_free_size, true); in Free()
450 DCHECK_EQ(info->GetNextInfo(), new_free_info); in Free()
465 AllocationInfo* info = GetAllocationInfoForAddress(reinterpret_cast<uintptr_t>(obj)); in AllocationSize() local
466 DCHECK(!info->IsFree()); in AllocationSize()
467 size_t alloc_size = info->ByteSize(); in AllocationSize()
485 AllocationInfo* info = *it; in Alloc() local
488 new_info = info->GetPrevFreeInfo(); in Alloc()
490 info->SetPrevFreeBytes(info->GetPrevFreeBytes() - allocation_size); in Alloc()
491 if (info->GetPrevFreeBytes() > 0) { in Alloc()
492 AllocationInfo* new_free = info - info->GetPrevFree(); in Alloc()
494 new_free->SetByteSize(info->GetPrevFreeBytes(), true); in Alloc()
496 free_blocks_.insert(info); in Alloc()
559 const AllocationInfo* info = GetAllocationInfoForAddress(reinterpret_cast<uintptr_t>(obj)); in IsZygoteLargeObject() local
560 DCHECK(info != nullptr); in IsZygoteLargeObject()
561 return info->IsZygoteObject(); in IsZygoteLargeObject()