Lines Matching refs:fpr
137 FreePageRun* fpr = *it; in AllocPages() local
138 DCHECK(fpr->IsFree()); in AllocPages()
139 size_t fpr_byte_size = fpr->ByteSize(this); in AllocPages()
146 << std::hex << reinterpret_cast<intptr_t>(fpr) in AllocPages()
152 reinterpret_cast<FreePageRun*>(reinterpret_cast<uint8_t*>(fpr) + req_byte_size); in AllocPages()
165 fpr->SetByteSize(this, req_byte_size); in AllocPages()
166 DCHECK_EQ(fpr->ByteSize(this) % kPageSize, static_cast<size_t>(0)); in AllocPages()
168 res = fpr; in AllocPages()
235 FreePageRun* fpr = *it; in AllocPages() local
238 DCHECK_EQ(last_free_page_run, fpr); in AllocPages()
240 size_t fpr_byte_size = fpr->ByteSize(this); in AllocPages()
243 free_page_runs_.erase(fpr); in AllocPages()
245 …OG(INFO) << "RosAlloc::AllocPages() : Erased run 0x" << std::hex << reinterpret_cast<intptr_t>(fpr) in AllocPages()
250 …FreePageRun* remainder = reinterpret_cast<FreePageRun*>(reinterpret_cast<uint8_t*>(fpr) + req_byte… in AllocPages()
262 fpr->SetByteSize(this, req_byte_size); in AllocPages()
263 DCHECK_EQ(fpr->ByteSize(this) % kPageSize, static_cast<size_t>(0)); in AllocPages()
265 res = fpr; in AllocPages()
359 FreePageRun* fpr = reinterpret_cast<FreePageRun*>(ptr); in FreePages() local
361 fpr->magic_num_ = kMagicNumFree; in FreePages()
363 fpr->SetByteSize(this, byte_size); in FreePages()
364 DCHECK_ALIGNED(fpr->ByteSize(this), kPageSize); in FreePages()
366 DCHECK(free_page_runs_.find(fpr) == free_page_runs_.end()); in FreePages()
371 … << std::hex << reinterpret_cast<uintptr_t>(fpr) << " [" << std::dec << pm_idx << "] -0x" in FreePages()
372 << std::hex << reinterpret_cast<uintptr_t>(fpr->End(this)) << " [" << std::dec in FreePages()
373 … << (fpr->End(this) == End() ? page_map_size_ : ToPageMapIndex(fpr->End(this))) << "]"; in FreePages()
375 for (auto it = free_page_runs_.upper_bound(fpr); it != free_page_runs_.end(); ) { in FreePages()
384 if (fpr->End(this) == h->Begin()) { in FreePages()
398 fpr->SetByteSize(this, fpr->ByteSize(this) + h->ByteSize(this)); in FreePages()
399 DCHECK_EQ(fpr->ByteSize(this) % kPageSize, static_cast<size_t>(0)); in FreePages()
409 for (auto it = free_page_runs_.upper_bound(fpr); it != free_page_runs_.begin(); ) { 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()
448 DCHECK_EQ(fpr->ByteSize(this) % kPageSize, static_cast<size_t>(0)); in FreePages()
449 DCHECK(free_page_runs_.find(fpr) == free_page_runs_.end()); in FreePages()
450 DCHECK(fpr->IsFree()); in FreePages()
451 fpr->ReleasePages(this); in FreePages()
452 DCHECK(fpr->IsFree()); in FreePages()
453 free_page_runs_.insert(fpr); in FreePages()
454 DCHECK(free_page_runs_.find(fpr) != free_page_runs_.end()); in FreePages()
456 …G(INFO) << "RosAlloc::FreePages() : Inserted run 0x" << std::hex << reinterpret_cast<intptr_t>(fpr) in FreePages()
1223 FreePageRun* fpr = reinterpret_cast<FreePageRun*>(base_ + i * kPageSize); in DumpPageMap() local
1224 if (free_page_runs_.find(fpr) != free_page_runs_.end()) { in DumpPageMap()
1227 DCHECK(fpr->IsFree()); in DumpPageMap()
1230 curr_fpr = fpr; in DumpPageMap()
1231 curr_fpr_size = fpr->ByteSize(this); in DumpPageMap()
1413 FreePageRun* fpr = reinterpret_cast<FreePageRun*>(base_ + i * kPageSize); in InspectAll() local
1414 DCHECK(free_page_runs_.find(fpr) != free_page_runs_.end()); in InspectAll()
1415 size_t fpr_size = fpr->ByteSize(this); in InspectAll()
1417 void* start = fpr; in InspectAll()
1421 start = reinterpret_cast<uint8_t*>(fpr) + kPageSize; in InspectAll()
1423 void* end = reinterpret_cast<uint8_t*>(fpr) + fpr_size; in InspectAll()
1762 FreePageRun* fpr = reinterpret_cast<FreePageRun*>(base_ + i * kPageSize); in Verify() local
1763 DCHECK_EQ(fpr->magic_num_, kMagicNumFree); in Verify()
1764 CHECK(free_page_runs_.find(fpr) != free_page_runs_.end()) in Verify()
1766 size_t fpr_size = fpr->ByteSize(this); in Verify()
2005 FreePageRun* fpr = reinterpret_cast<FreePageRun*>(base_ + i * kPageSize); in ReleasePages() local
2010 if (free_page_runs_.find(fpr) != free_page_runs_.end()) { in ReleasePages()
2011 size_t fpr_size = fpr->ByteSize(this); in ReleasePages()
2013 uint8_t* start = reinterpret_cast<uint8_t*>(fpr); in ReleasePages()
2078 for (FreePageRun* fpr : free_page_runs_) { in LogFragmentationAllocFailure()
2080 fpr->ByteSize(this)); in LogFragmentationAllocFailure()
2081 total_free += fpr->ByteSize(this); in LogFragmentationAllocFailure()