Lines Matching refs:pm_idx
291 size_t pm_idx = ToPageMapIndex(ptr);
292 DCHECK_LT(pm_idx, page_map_size_);
293 byte pm_type = page_map_[pm_idx];
304 LOG(FATAL) << "Unreachable - " << __PRETTY_FUNCTION__ << " : " << "pm_idx=" << pm_idx << ", pm_type="
311 page_map_[pm_idx] = kPageMapEmpty;
312 size_t idx = pm_idx + 1;
350 << std::hex << reinterpret_cast<uintptr_t>(fpr) << " [" << std::dec << pm_idx << "] -0x"
488 size_t pm_idx = RoundDownToPageMapIndex(ptr);
492 DCHECK_LT(pm_idx, page_map_size_);
493 byte page_map_entry = page_map_[pm_idx];
495 LOG(INFO) << "RosAlloc::FreeInternal() : " << std::hex << ptr << ", pm_idx=" << std::dec << pm_idx
498 switch (page_map_[pm_idx]) {
502 LOG(FATAL) << "Unreachable - page map type: " << page_map_[pm_idx];
507 --pm_idx;
508 DCHECK_LT(pm_idx, capacity_ / kPageSize);
509 } while (page_map_[pm_idx] != kPageMapRun);
512 run = reinterpret_cast<Run*>(base_ + pm_idx * kPageSize);
518 LOG(FATAL) << "Unreachable - page map type: " << page_map_[pm_idx];
522 LOG(FATAL) << "Unreachable - page map type: " << page_map_[pm_idx];
1169 size_t pm_idx = RoundDownToPageMapIndex(ptr);
1173 byte page_map_entry = page_map_[pm_idx];
1175 LOG(INFO) << "RosAlloc::BulkFree() : " << std::hex << ptr << ", pm_idx="
1176 << std::dec << pm_idx
1180 run = reinterpret_cast<Run*>(base_ + pm_idx * kPageSize);
1182 size_t pi = pm_idx;
1199 DCHECK_LT(pm_idx, page_map_size_);
1200 byte page_map_entry = page_map_[pm_idx];
1202 LOG(INFO) << "RosAlloc::BulkFree() : " << std::hex << ptr << ", pm_idx="
1203 << std::dec << pm_idx
1207 run = reinterpret_cast<Run*>(base_ + pm_idx * kPageSize);
1209 size_t pi = pm_idx;
1443 size_t pm_idx = RoundDownToPageMapIndex(ptr);
1445 switch (page_map_[pm_idx]) {
1449 LOG(FATAL) << "Unreachable - " << __PRETTY_FUNCTION__ << ": pm_idx=" << pm_idx << ", ptr="
1454 size_t idx = pm_idx + 1;
1463 LOG(FATAL) << "Unreachable - " << __PRETTY_FUNCTION__ << ": pm_idx=" << pm_idx << ", ptr="
1469 while (page_map_[pm_idx] != kPageMapRun) {
1470 pm_idx--;
1471 DCHECK_LT(pm_idx, capacity_ / kPageSize);
1473 DCHECK_EQ(page_map_[pm_idx], kPageMapRun);
1474 Run* run = reinterpret_cast<Run*>(base_ + pm_idx * kPageSize);
1483 LOG(FATAL) << "Unreachable - page map type: " << page_map_[pm_idx];
2173 size_t pm_idx = ToPageMapIndex(start);
2176 const size_t max_idx = pm_idx + (end - start) / kPageSize;
2177 for (; pm_idx < max_idx; ++pm_idx) {
2178 DCHECK(IsFreePage(pm_idx));
2179 if (page_map_[pm_idx] == kPageMapEmpty) {
2182 page_map_[pm_idx] = kPageMapReleased;