equal
deleted
inserted
replaced
238 // Prefer flushing large, then medium and last small pages |
238 // Prefer flushing large, then medium and last small pages |
239 flush_list(cl, &_large, to); |
239 flush_list(cl, &_large, to); |
240 flush_list(cl, &_medium, to); |
240 flush_list(cl, &_medium, to); |
241 flush_per_numa_lists(cl, &_small, to); |
241 flush_per_numa_lists(cl, &_small, to); |
242 } |
242 } |
|
243 |
|
244 void ZPageCache::pages_do(ZPageClosure* cl) const { |
|
245 // Small |
|
246 ZPerNUMAConstIterator<ZList<ZPage> > iter_numa(&_small); |
|
247 for (const ZList<ZPage>* list; iter_numa.next(&list);) { |
|
248 ZListIterator<ZPage> iter_small(list); |
|
249 for (ZPage* page; iter_small.next(&page);) { |
|
250 cl->do_page(page); |
|
251 } |
|
252 } |
|
253 |
|
254 // Medium |
|
255 ZListIterator<ZPage> iter_medium(&_medium); |
|
256 for (ZPage* page; iter_medium.next(&page);) { |
|
257 cl->do_page(page); |
|
258 } |
|
259 |
|
260 // Large |
|
261 ZListIterator<ZPage> iter_large(&_large); |
|
262 for (ZPage* page; iter_large.next(&page);) { |
|
263 cl->do_page(page); |
|
264 } |
|
265 } |