Lines Matching refs:end

116   for (auto it = free_page_runs_.begin(); it != free_page_runs_.end(); ) {  in AllocPages()
313 size_t end = page_map_size_; in FreePages() local
314 while (idx < end && page_map_[idx] == pm_part_type) { in FreePages()
345 DCHECK(free_page_runs_.find(fpr) == free_page_runs_.end()); in FreePages()
355 if (higher_it != free_page_runs_.end()) { in FreePages()
356 for (auto it = higher_it; it != free_page_runs_.end(); ) { in FreePages()
440 DCHECK(free_page_runs_.find(fpr) == free_page_runs_.end()); in FreePages()
445 DCHECK(free_page_runs_.find(fpr) != free_page_runs_.end()); in FreePages()
600 DCHECK(non_full_runs_[idx].find(current_run) == non_full_runs_[idx].end()); in AllocFromCurrentRunUnlocked()
601 DCHECK(full_runs_[idx].find(current_run) != full_runs_[idx].end()); in AllocFromCurrentRunUnlocked()
610 DCHECK(non_full_runs_[idx].find(current_run) == non_full_runs_[idx].end()); in AllocFromCurrentRunUnlocked()
611 DCHECK(full_runs_[idx].find(current_run) == full_runs_[idx].end()); in AllocFromCurrentRunUnlocked()
660 CHECK(non_full_runs_[idx].find(thread_local_run) == non_full_runs_[idx].end()); in AllocFromRun()
661 CHECK(full_runs_[idx].find(thread_local_run) == full_runs_[idx].end()); in AllocFromRun()
697 DCHECK(non_full_runs_[idx].find(thread_local_run) == non_full_runs_[idx].end()); in AllocFromRun()
698 DCHECK(full_runs_[idx].find(thread_local_run) != full_runs_[idx].end()); in AllocFromRun()
706 DCHECK(non_full_runs_[idx].find(thread_local_run) == non_full_runs_[idx].end()); in AllocFromRun()
707 DCHECK(full_runs_[idx].find(thread_local_run) == full_runs_[idx].end()); in AllocFromRun()
758 DCHECK(non_full_runs_[idx].find(run) == non_full_runs_[idx].end()); in FreeFromRun()
759 DCHECK(full_runs_[idx].find(run) == full_runs_[idx].end()); in FreeFromRun()
774 if (pos != non_full_runs->end()) { in FreeFromRun()
784 DCHECK(non_full_runs_[idx].find(run) == non_full_runs_[idx].end()); in FreeFromRun()
785 DCHECK(full_runs_[idx].find(run) == full_runs_[idx].end()); in FreeFromRun()
799 if (pos == non_full_runs->end()) { in FreeFromRun()
801 DCHECK(full_runs->find(run) != full_runs->end()); in FreeFromRun()
1115 void RosAlloc::Run::InspectAllSlots(void (*handler)(void* start, void* end, size_t used_bytes, void… in InspectAllSlots() argument
1127 size_t end = std::min(num_slots - slots, static_cast<size_t>(32)); in InspectAllSlots() local
1128 for (size_t i = 0; i < end; ++i) { in InspectAllSlots()
1250 DCHECK(non_full_runs_[idx].find(run) == non_full_runs_[idx].end()); in BulkFree()
1251 DCHECK(full_runs_[idx].find(run) == full_runs_[idx].end()); in BulkFree()
1277 DCHECK(full_runs->find(run) == full_runs->end()); in BulkFree()
1278 DCHECK(non_full_runs->find(run) == non_full_runs->end()); in BulkFree()
1285 DCHECK(pos != full_runs->end()); in BulkFree()
1292 DCHECK(full_runs->find(run) == full_runs->end()); in BulkFree()
1296 DCHECK(full_runs->find(run) == full_runs->end()); in BulkFree()
1297 DCHECK(non_full_runs->find(run) != non_full_runs->end()); in BulkFree()
1304 DCHECK(non_full_runs->find(run) == non_full_runs->end()); in BulkFree()
1316 DCHECK(non_full_runs->find(run) == non_full_runs->end()); in BulkFree()
1317 DCHECK(full_runs->find(run) == full_runs->end()); in BulkFree()
1322 DCHECK(full_runs->find(run) != full_runs->end()); in BulkFree()
1323 DCHECK(non_full_runs->find(run) == non_full_runs->end()); in BulkFree()
1340 DCHECK(full_runs->find(run) == full_runs->end()); in BulkFree()
1341 DCHECK(non_full_runs->find(run) != non_full_runs->end()); in BulkFree()
1353 size_t end = page_map_size_; in DumpPageMap() local
1358 for (size_t i = 0; i < end; ++i) { in DumpPageMap()
1365 if (free_page_runs_.find(fpr) != free_page_runs_.end()) { in DumpPageMap()
1455 size_t end = page_map_size_; in UsableSize() local
1456 while (idx < end && page_map_[idx] == kPageMapLargeObjectPart) { in UsableSize()
1539 void RosAlloc::InspectAll(void (*handler)(void* start, void* end, size_t used_bytes, void* callback… in InspectAll() argument
1556 DCHECK(free_page_runs_.find(fpr) != free_page_runs_.end()); in InspectAll()
1565 void* end = reinterpret_cast<byte*>(fpr) + fpr_size; in InspectAll() local
1566 handler(start, end, 0, arg); in InspectAll()
1586 void* end = base_ + (i + num_pages) * kPageSize; in InspectAll() local
1588 handler(start, end, used_bytes, arg); in InspectAll()
1667 DCHECK(non_full_runs_[idx].find(thread_local_run) == non_full_runs_[idx].end()); in RevokeThreadLocalRuns()
1668 DCHECK(full_runs_[idx].find(thread_local_run) == full_runs_[idx].end()); in RevokeThreadLocalRuns()
1680 DCHECK(full_runs_[idx].find(run) != full_runs_[idx].end()); in RevokeRun()
1693 DCHECK(non_full_runs_[idx].find(run) != non_full_runs_[idx].end()); in RevokeRun()
1856 void RosAlloc::BytesAllocatedCallback(void* start, void* end, size_t used_bytes, void* arg) { in BytesAllocatedCallback() argument
1864 void RosAlloc::ObjectsAllocatedCallback(void* start, void* end, size_t used_bytes, void* arg) { in ObjectsAllocatedCallback() argument
1892 CHECK(free_page_runs_.find(fpr) != free_page_runs_.end()) in Verify()
2019 for (auto it = thread_list.begin(); it != thread_list.end(); ++it) { in Verify()
2064 CHECK(non_full_runs.find(this) != non_full_runs.end()) in Verify()
2070 CHECK(full_runs.find(this) != full_runs.end()) in Verify()
2082 size_t end = std::min(num_slots - slots, static_cast<size_t>(32)); in Verify() local
2083 for (size_t i = 0; i < end; ++i) { in Verify()
2131 if (free_page_runs_.find(fpr) != free_page_runs_.end()) { in ReleasePages()
2159 size_t RosAlloc::ReleasePageRange(byte* start, byte* end) { in ReleasePageRange() argument
2161 DCHECK_ALIGNED(end, kPageSize); in ReleasePageRange()
2162 DCHECK_LT(start, end); in ReleasePageRange()
2170 memset(start, 0, end - start); in ReleasePageRange()
2172 CHECK_EQ(madvise(start, end - start, MADV_DONTNEED), 0); in ReleasePageRange()
2176 const size_t max_idx = pm_idx + (end - start) / kPageSize; in ReleasePageRange()