Lines Matching refs:pm_idx

312   size_t pm_idx = ToPageMapIndex(ptr);  in FreePages()  local
313 DCHECK_LT(pm_idx, page_map_size_); in FreePages()
314 uint8_t pm_type = page_map_[pm_idx]; in FreePages()
325 …LOG(FATAL) << "Unreachable - " << __PRETTY_FUNCTION__ << " : " << "pm_idx=" << pm_idx << ", pm_typ… in FreePages()
332 page_map_[pm_idx] = kPageMapEmpty; in FreePages()
333 size_t idx = pm_idx + 1; in FreePages()
371 … << std::hex << reinterpret_cast<uintptr_t>(fpr) << " [" << std::dec << pm_idx << "] -0x" in FreePages()
502 size_t pm_idx = RoundDownToPageMapIndex(ptr); in FreeInternal() local
506 DCHECK_LT(pm_idx, page_map_size_); in FreeInternal()
507 uint8_t page_map_entry = page_map_[pm_idx]; in FreeInternal()
509 … LOG(INFO) << "RosAlloc::FreeInternal() : " << std::hex << ptr << ", pm_idx=" << std::dec << pm_idx in FreeInternal()
512 switch (page_map_[pm_idx]) { in FreeInternal()
516 LOG(FATAL) << "Unreachable - page map type: " << static_cast<int>(page_map_[pm_idx]); in FreeInternal()
521 --pm_idx; in FreeInternal()
522 DCHECK_LT(pm_idx, capacity_ / kPageSize); in FreeInternal()
523 } while (page_map_[pm_idx] != kPageMapRun); in FreeInternal()
526 run = reinterpret_cast<Run*>(base_ + pm_idx * kPageSize); in FreeInternal()
531 LOG(FATAL) << "Unreachable - page map type: " << static_cast<int>(page_map_[pm_idx]); in FreeInternal()
535 LOG(FATAL) << "Unreachable - page map type: " << static_cast<int>(page_map_[pm_idx]); in FreeInternal()
1029 size_t pm_idx = RoundDownToPageMapIndex(ptr); in BulkFree() local
1033 uint8_t page_map_entry = page_map_[pm_idx]; in BulkFree()
1036 << std::dec << pm_idx in BulkFree()
1040 run = reinterpret_cast<Run*>(base_ + pm_idx * kPageSize); in BulkFree()
1042 size_t pi = pm_idx; in BulkFree()
1059 DCHECK_LT(pm_idx, page_map_size_); in BulkFree()
1060 uint8_t page_map_entry = page_map_[pm_idx]; in BulkFree()
1063 << std::dec << pm_idx in BulkFree()
1067 run = reinterpret_cast<Run*>(base_ + pm_idx * kPageSize); in BulkFree()
1069 size_t pi = pm_idx; in BulkFree()
1302 size_t pm_idx = RoundDownToPageMapIndex(ptr); in UsableSize() local
1304 switch (page_map_[pm_idx]) { in UsableSize()
1308 LOG(FATAL) << "Unreachable - " << __PRETTY_FUNCTION__ << ": pm_idx=" << pm_idx << ", ptr=" in UsableSize()
1313 size_t idx = pm_idx + 1; in UsableSize()
1322 LOG(FATAL) << "Unreachable - " << __PRETTY_FUNCTION__ << ": pm_idx=" << pm_idx << ", ptr=" in UsableSize()
1328 while (page_map_[pm_idx] != kPageMapRun) { in UsableSize()
1329 pm_idx--; in UsableSize()
1330 DCHECK_LT(pm_idx, capacity_ / kPageSize); in UsableSize()
1332 DCHECK_EQ(page_map_[pm_idx], kPageMapRun); in UsableSize()
1333 Run* run = reinterpret_cast<Run*>(base_ + pm_idx * kPageSize); in UsableSize()
1342 LOG(FATAL) << "Unreachable - page map type: " << static_cast<int>(page_map_[pm_idx]); in UsableSize()
2057 size_t pm_idx = ToPageMapIndex(start); in ReleasePageRange() local
2060 const size_t max_idx = pm_idx + (end - start) / kPageSize; in ReleasePageRange()
2061 for (; pm_idx < max_idx; ++pm_idx) { in ReleasePageRange()
2062 DCHECK(IsFreePage(pm_idx)); in ReleasePageRange()
2063 if (page_map_[pm_idx] == kPageMapEmpty) { in ReleasePageRange()
2066 page_map_[pm_idx] = kPageMapReleased; in ReleasePageRange()