src/hotspot/share/gc/z/zPageCache.cpp
changeset 58815 a4cdca87152b
parent 58705 f5662bdbee4a
equal deleted inserted replaced
58814:bfb419c66ae9 58815:a4cdca87152b
   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 }