Lines Matching refs:fpr

130     FreePageRun* fpr = *it;  in AllocPages()  local
131 DCHECK(fpr->IsFree()); in AllocPages()
132 size_t fpr_byte_size = fpr->ByteSize(this); in AllocPages()
139 << std::hex << reinterpret_cast<intptr_t>(fpr) in AllocPages()
144 …FreePageRun* remainder = reinterpret_cast<FreePageRun*>(reinterpret_cast<uint8_t*>(fpr) + req_byte… in AllocPages()
157 fpr->SetByteSize(this, req_byte_size); in AllocPages()
158 DCHECK_EQ(fpr->ByteSize(this) % kPageSize, static_cast<size_t>(0)); in AllocPages()
160 res = fpr; in AllocPages()
227 FreePageRun* fpr = *it; in AllocPages() local
230 DCHECK_EQ(last_free_page_run, fpr); in AllocPages()
232 size_t fpr_byte_size = fpr->ByteSize(this); in AllocPages()
235 free_page_runs_.erase(fpr); in AllocPages()
237 …OG(INFO) << "RosAlloc::AllocPages() : Erased run 0x" << std::hex << reinterpret_cast<intptr_t>(fpr) in AllocPages()
242 …FreePageRun* remainder = reinterpret_cast<FreePageRun*>(reinterpret_cast<uint8_t*>(fpr) + req_byte… in AllocPages()
254 fpr->SetByteSize(this, req_byte_size); in AllocPages()
255 DCHECK_EQ(fpr->ByteSize(this) % kPageSize, static_cast<size_t>(0)); in AllocPages()
257 res = fpr; in AllocPages()
351 FreePageRun* fpr = reinterpret_cast<FreePageRun*>(ptr); in FreePages() local
353 fpr->magic_num_ = kMagicNumFree; in FreePages()
355 fpr->SetByteSize(this, byte_size); in FreePages()
356 DCHECK_ALIGNED(fpr->ByteSize(this), kPageSize); in FreePages()
358 DCHECK(free_page_runs_.find(fpr) == free_page_runs_.end()); in FreePages()
363 … << std::hex << reinterpret_cast<uintptr_t>(fpr) << " [" << std::dec << pm_idx << "] -0x" in FreePages()
364 << std::hex << reinterpret_cast<uintptr_t>(fpr->End(this)) << " [" << std::dec in FreePages()
365 … << (fpr->End(this) == End() ? page_map_size_ : ToPageMapIndex(fpr->End(this))) << "]"; in FreePages()
367 auto higher_it = free_page_runs_.upper_bound(fpr); in FreePages()
378 if (fpr->End(this) == h->Begin()) { in FreePages()
392 fpr->SetByteSize(this, fpr->ByteSize(this) + h->ByteSize(this)); in FreePages()
393 DCHECK_EQ(fpr->ByteSize(this) % kPageSize, static_cast<size_t>(0)); in FreePages()
404 auto lower_it = free_page_runs_.upper_bound(fpr); in FreePages()
420 if (l->End(this) == fpr->Begin()) { in FreePages()
430 l->SetByteSize(this, l->ByteSize(this) + fpr->ByteSize(this)); in FreePages()
434 fpr->magic_num_ = 0; in FreePages()
436 fpr = l; in FreePages()
452 DCHECK_EQ(fpr->ByteSize(this) % kPageSize, static_cast<size_t>(0)); in FreePages()
453 DCHECK(free_page_runs_.find(fpr) == free_page_runs_.end()); in FreePages()
454 DCHECK(fpr->IsFree()); in FreePages()
455 fpr->ReleasePages(this); in FreePages()
456 DCHECK(fpr->IsFree()); in FreePages()
457 free_page_runs_.insert(fpr); in FreePages()
458 DCHECK(free_page_runs_.find(fpr) != free_page_runs_.end()); in FreePages()
460 …G(INFO) << "RosAlloc::FreePages() : Inserted run 0x" << std::hex << reinterpret_cast<intptr_t>(fpr) in FreePages()
1227 FreePageRun* fpr = reinterpret_cast<FreePageRun*>(base_ + i * kPageSize); in DumpPageMap() local
1228 if (free_page_runs_.find(fpr) != free_page_runs_.end()) { in DumpPageMap()
1231 DCHECK(fpr->IsFree()); in DumpPageMap()
1234 curr_fpr = fpr; in DumpPageMap()
1235 curr_fpr_size = fpr->ByteSize(this); in DumpPageMap()
1418 FreePageRun* fpr = reinterpret_cast<FreePageRun*>(base_ + i * kPageSize); in InspectAll() local
1419 DCHECK(free_page_runs_.find(fpr) != free_page_runs_.end()); in InspectAll()
1420 size_t fpr_size = fpr->ByteSize(this); in InspectAll()
1422 void* start = fpr; in InspectAll()
1426 start = reinterpret_cast<uint8_t*>(fpr) + kPageSize; in InspectAll()
1428 void* end = reinterpret_cast<uint8_t*>(fpr) + fpr_size; in InspectAll()
1767 FreePageRun* fpr = reinterpret_cast<FreePageRun*>(base_ + i * kPageSize); in Verify() local
1768 DCHECK_EQ(fpr->magic_num_, kMagicNumFree); in Verify()
1769 CHECK(free_page_runs_.find(fpr) != free_page_runs_.end()) in Verify()
1771 size_t fpr_size = fpr->ByteSize(this); in Verify()
2010 FreePageRun* fpr = reinterpret_cast<FreePageRun*>(base_ + i * kPageSize); in ReleasePages() local
2015 if (free_page_runs_.find(fpr) != free_page_runs_.end()) { in ReleasePages()
2016 size_t fpr_size = fpr->ByteSize(this); in ReleasePages()
2018 uint8_t* start = reinterpret_cast<uint8_t*>(fpr); in ReleasePages()
2082 for (FreePageRun* fpr : free_page_runs_) { in LogFragmentationAllocFailure()
2084 fpr->ByteSize(this)); in LogFragmentationAllocFailure()