Lines Matching refs:num_pages
130 void* RosAlloc::AllocPages(Thread* self, size_t num_pages, uint8_t page_map_type) { in AllocPages() argument
134 const size_t req_byte_size = num_pages * gPageSize; in AllocPages()
271 for (size_t i = 0; i < num_pages; i++) { in AllocPages()
277 for (size_t i = 1; i < num_pages; i++) { in AllocPages()
283 for (size_t i = 1; i < num_pages; i++) { in AllocPages()
297 << "-0x" << (reinterpret_cast<intptr_t>(res) + num_pages * gPageSize) in AllocPages()
298 << "(" << std::dec << (num_pages * gPageSize) << ")"; in AllocPages()
331 size_t num_pages = 1; in FreePages() local
337 num_pages++; in FreePages()
340 const size_t byte_size = num_pages * gPageSize; in FreePages()
355 << "(" << std::dec << (num_pages * gPageSize) << ")"; in FreePages()
467 size_t num_pages = DivideByPageSize(RoundUp(size, gPageSize)); in AllocLargeObject() local
471 r = AllocPages(self, num_pages, kPageMapLargeObject); in AllocLargeObject()
479 const size_t total_bytes = num_pages * gPageSize; in AllocLargeObject()
485 << "-0x" << (reinterpret_cast<intptr_t>(r) + num_pages * gPageSize) in AllocLargeObject()
486 << "(" << std::dec << (num_pages * gPageSize) << ")"; in AllocLargeObject()
1309 size_t num_pages = 1; in UsableSize() local
1313 num_pages++; in UsableSize()
1316 return num_pages * gPageSize; in UsableSize()
1422 size_t num_pages = DivideByPageSize(fpr_size); in InspectAll() local
1424 for (size_t j = i + 1; j < i + num_pages; ++j) { in InspectAll()
1434 size_t num_pages = 1; in InspectAll() local
1437 num_pages++; in InspectAll()
1441 void* end = base_ + (i + num_pages) * gPageSize; in InspectAll()
1442 size_t used_bytes = num_pages * gPageSize; in InspectAll()
1445 for (size_t j = i + 1; j < i + num_pages; ++j) { in InspectAll()
1449 i += num_pages; in InspectAll()
1463 size_t num_pages = numOfPages[run->size_bracket_idx_]; in InspectAll() local
1465 for (size_t j = i + 1; j < i + num_pages; ++j) { in InspectAll()
1469 i += num_pages; in InspectAll()
1767 size_t num_pages = DivideByPageSize(fpr_size); in Verify() local
1768 CHECK_GT(num_pages, static_cast<uintptr_t>(0)) in Verify()
1770 for (size_t j = i + 1; j < i + num_pages; ++j) { in Verify()
1775 << i << " to " << (i + num_pages) << std::endl << DumpPageMap(); in Verify()
1777 i += num_pages; in Verify()
1784 size_t num_pages = 1; in Verify() local
1787 num_pages++; in Verify()
1798 CHECK_EQ(num_pages, DivideByPageSize(RoundUp(obj_size + memory_tool_modifier, gPageSize))) in Verify()
1800 << " does not match the page map table " << (num_pages * gPageSize) in Verify()
1802 i += num_pages; in Verify()
1816 size_t num_pages = numOfPages[idx]; in Verify() local
1817 CHECK_GT(num_pages, static_cast<uintptr_t>(0)) in Verify()
1818 << "Run size must be > 0 : " << num_pages; in Verify()
1819 for (size_t j = i + 1; j < i + num_pages; ++j) { in Verify()
1823 << " and the run size : page index range " << i << " to " << (i + num_pages) in Verify()
1828 i += num_pages; in Verify()
2121 size_t num_pages = 1; in DumpStats() local
2124 num_pages++; in DumpStats()
2128 num_pages_large_objects += num_pages; in DumpStats()
2129 i += num_pages; in DumpStats()
2139 size_t num_pages = numOfPages[idx]; in DumpStats() local
2141 num_pages_runs[idx] += num_pages; in DumpStats()
2146 i += num_pages; in DumpStats()