Lines Matching refs:chunk
300 for (uptr chunk = region_beg;
301 chunk < region_beg + region_allocated_user_size;
302 chunk += chunk_size) {
303 // Too slow: CHECK_EQ((void *)chunk, GetBlockBegin((void *)chunk));
304 callback(chunk, arg);
476 // One chunk covers multiple pages, no cross overs.
480 // One chunk covers multiple pages, Some chunks are crossing page
481 // boundaries. Some pages contain one chunk, some contain two.
501 // Each chunk affects one page only.
513 // Iterate over pages detecting ranges of pages with chunk counters equal
526 // The idea is to increment the current page pointer by the first chunk
528 // except the first and the last one) and then the last chunk size, adding
621 uptr GetChunkIdx(uptr chunk, uptr size) const {
623 chunk -= SpaceBeg();
625 uptr offset = chunk % kRegionSize;
750 for (uptr i = 0, chunk = region->allocated_user; i < new_chunks_count;
751 i++, chunk += size)
752 free_array[total_freed_chunks - 1 - i] = PointerToCompactPtr(0, chunk);