Lines Matching refs:fpr
122 FreePageRun* fpr = *it; in AllocPages() local
123 DCHECK(fpr->IsFree()); in AllocPages()
124 size_t fpr_byte_size = fpr->ByteSize(this); in AllocPages()
131 << std::hex << reinterpret_cast<intptr_t>(fpr) in AllocPages()
136 …FreePageRun* remainder = reinterpret_cast<FreePageRun*>(reinterpret_cast<uint8_t*>(fpr) + req_byte… in AllocPages()
149 fpr->SetByteSize(this, req_byte_size); in AllocPages()
150 DCHECK_EQ(fpr->ByteSize(this) % kPageSize, static_cast<size_t>(0)); in AllocPages()
152 res = fpr; in AllocPages()
219 FreePageRun* fpr = *it; in AllocPages() local
222 DCHECK_EQ(last_free_page_run, fpr); in AllocPages()
224 size_t fpr_byte_size = fpr->ByteSize(this); in AllocPages()
227 free_page_runs_.erase(fpr); in AllocPages()
229 …OG(INFO) << "RosAlloc::AllocPages() : Erased run 0x" << std::hex << reinterpret_cast<intptr_t>(fpr) in AllocPages()
234 …FreePageRun* remainder = reinterpret_cast<FreePageRun*>(reinterpret_cast<uint8_t*>(fpr) + req_byte… in AllocPages()
246 fpr->SetByteSize(this, req_byte_size); in AllocPages()
247 DCHECK_EQ(fpr->ByteSize(this) % kPageSize, static_cast<size_t>(0)); in AllocPages()
249 res = fpr; in AllocPages()
343 FreePageRun* fpr = reinterpret_cast<FreePageRun*>(ptr); in FreePages() local
345 fpr->magic_num_ = kMagicNumFree; in FreePages()
347 fpr->SetByteSize(this, byte_size); in FreePages()
348 DCHECK(IsAligned<kPageSize>(fpr->ByteSize(this))); in FreePages()
350 DCHECK(free_page_runs_.find(fpr) == free_page_runs_.end()); in FreePages()
355 … << std::hex << reinterpret_cast<uintptr_t>(fpr) << " [" << std::dec << pm_idx << "] -0x" in FreePages()
356 << std::hex << reinterpret_cast<uintptr_t>(fpr->End(this)) << " [" << std::dec in FreePages()
357 … << (fpr->End(this) == End() ? page_map_size_ : ToPageMapIndex(fpr->End(this))) << "]"; in FreePages()
359 auto higher_it = free_page_runs_.upper_bound(fpr); in FreePages()
370 if (fpr->End(this) == h->Begin()) { in FreePages()
384 fpr->SetByteSize(this, fpr->ByteSize(this) + h->ByteSize(this)); in FreePages()
385 DCHECK_EQ(fpr->ByteSize(this) % kPageSize, static_cast<size_t>(0)); in FreePages()
396 auto lower_it = free_page_runs_.upper_bound(fpr); in FreePages()
412 if (l->End(this) == fpr->Begin()) { in FreePages()
422 l->SetByteSize(this, l->ByteSize(this) + fpr->ByteSize(this)); in FreePages()
426 fpr->magic_num_ = 0; in FreePages()
428 fpr = l; in FreePages()
444 DCHECK_EQ(fpr->ByteSize(this) % kPageSize, static_cast<size_t>(0)); in FreePages()
445 DCHECK(free_page_runs_.find(fpr) == free_page_runs_.end()); in FreePages()
446 DCHECK(fpr->IsFree()); in FreePages()
447 fpr->ReleasePages(this); in FreePages()
448 DCHECK(fpr->IsFree()); in FreePages()
449 free_page_runs_.insert(fpr); in FreePages()
450 DCHECK(free_page_runs_.find(fpr) != free_page_runs_.end()); in FreePages()
452 …G(INFO) << "RosAlloc::FreePages() : Inserted run 0x" << std::hex << reinterpret_cast<intptr_t>(fpr) in FreePages()
1372 FreePageRun* fpr = reinterpret_cast<FreePageRun*>(base_ + i * kPageSize); in DumpPageMap() local
1373 if (free_page_runs_.find(fpr) != free_page_runs_.end()) { in DumpPageMap()
1376 DCHECK(fpr->IsFree()); in DumpPageMap()
1379 curr_fpr = fpr; in DumpPageMap()
1380 curr_fpr_size = fpr->ByteSize(this); in DumpPageMap()
1563 FreePageRun* fpr = reinterpret_cast<FreePageRun*>(base_ + i * kPageSize); in InspectAll() local
1564 DCHECK(free_page_runs_.find(fpr) != free_page_runs_.end()); in InspectAll()
1565 size_t fpr_size = fpr->ByteSize(this); in InspectAll()
1567 void* start = fpr; in InspectAll()
1571 start = reinterpret_cast<uint8_t*>(fpr) + kPageSize; in InspectAll()
1573 void* end = reinterpret_cast<uint8_t*>(fpr) + fpr_size; in InspectAll()
1910 FreePageRun* fpr = reinterpret_cast<FreePageRun*>(base_ + i * kPageSize); in Verify() local
1911 DCHECK_EQ(fpr->magic_num_, kMagicNumFree); in Verify()
1912 CHECK(free_page_runs_.find(fpr) != free_page_runs_.end()) in Verify()
1914 size_t fpr_size = fpr->ByteSize(this); in Verify()
2155 FreePageRun* fpr = reinterpret_cast<FreePageRun*>(base_ + i * kPageSize); in ReleasePages() local
2160 if (free_page_runs_.find(fpr) != free_page_runs_.end()) { in ReleasePages()
2161 size_t fpr_size = fpr->ByteSize(this); in ReleasePages()
2163 uint8_t* start = reinterpret_cast<uint8_t*>(fpr); in ReleasePages()
2227 for (FreePageRun* fpr : free_page_runs_) { in LogFragmentationAllocFailure()
2229 fpr->ByteSize(this)); in LogFragmentationAllocFailure()