Lines Matching refs:num_pages
123 void* RosAlloc::AllocPages(Thread* self, size_t num_pages, uint8_t page_map_type) { in AllocPages() argument
127 const size_t req_byte_size = num_pages * kPageSize; in AllocPages()
263 for (size_t i = 0; i < num_pages; i++) { in AllocPages()
269 for (size_t i = 1; i < num_pages; i++) { in AllocPages()
275 for (size_t i = 1; i < num_pages; i++) { in AllocPages()
289 << "-0x" << (reinterpret_cast<intptr_t>(res) + num_pages * kPageSize) in AllocPages()
290 << "(" << std::dec << (num_pages * kPageSize) << ")"; in AllocPages()
323 size_t num_pages = 1; in FreePages() local
329 num_pages++; in FreePages()
332 const size_t byte_size = num_pages * kPageSize; in FreePages()
347 << "(" << std::dec << (num_pages * kPageSize) << ")"; in FreePages()
471 size_t num_pages = RoundUp(size, kPageSize) / kPageSize; in AllocLargeObject() local
475 r = AllocPages(self, num_pages, kPageMapLargeObject); in AllocLargeObject()
483 const size_t total_bytes = num_pages * kPageSize; in AllocLargeObject()
489 << "-0x" << (reinterpret_cast<intptr_t>(r) + num_pages * kPageSize) in AllocLargeObject()
490 << "(" << std::dec << (num_pages * kPageSize) << ")"; in AllocLargeObject()
1316 size_t num_pages = 1; in UsableSize() local
1320 num_pages++; in UsableSize()
1323 return num_pages * kPageSize; in UsableSize()
1430 size_t num_pages = fpr_size / kPageSize; in InspectAll() local
1432 for (size_t j = i + 1; j < i + num_pages; ++j) { in InspectAll()
1442 size_t num_pages = 1; in InspectAll() local
1445 num_pages++; in InspectAll()
1449 void* end = base_ + (i + num_pages) * kPageSize; in InspectAll()
1450 size_t used_bytes = num_pages * kPageSize; in InspectAll()
1453 for (size_t j = i + 1; j < i + num_pages; ++j) { in InspectAll()
1457 i += num_pages; in InspectAll()
1471 size_t num_pages = numOfPages[run->size_bracket_idx_]; in InspectAll() local
1473 for (size_t j = i + 1; j < i + num_pages; ++j) { in InspectAll()
1477 i += num_pages; in InspectAll()
1774 size_t num_pages = fpr_size / kPageSize; in Verify() local
1775 CHECK_GT(num_pages, static_cast<uintptr_t>(0)) in Verify()
1777 for (size_t j = i + 1; j < i + num_pages; ++j) { in Verify()
1782 << i << " to " << (i + num_pages) << std::endl << DumpPageMap(); in Verify()
1784 i += num_pages; in Verify()
1791 size_t num_pages = 1; in Verify() local
1794 num_pages++; in Verify()
1805 CHECK_EQ(num_pages, RoundUp(obj_size + memory_tool_modifier, kPageSize) / kPageSize) in Verify()
1807 << " does not match the page map table " << (num_pages * kPageSize) in Verify()
1809 i += num_pages; in Verify()
1823 size_t num_pages = numOfPages[idx]; in Verify() local
1824 CHECK_GT(num_pages, static_cast<uintptr_t>(0)) in Verify()
1825 << "Run size must be > 0 : " << num_pages; in Verify()
1826 for (size_t j = i + 1; j < i + num_pages; ++j) { in Verify()
1830 << " and the run size : page index range " << i << " to " << (i + num_pages) in Verify()
1835 i += num_pages; in Verify()
2127 size_t num_pages = 1; in DumpStats() local
2130 num_pages++; in DumpStats()
2134 num_pages_large_objects += num_pages; in DumpStats()
2135 i += num_pages; in DumpStats()
2145 size_t num_pages = numOfPages[idx]; in DumpStats() local
2147 num_pages_runs[idx] += num_pages; in DumpStats()
2152 i += num_pages; in DumpStats()