equal
deleted
inserted
replaced
30 |
30 |
31 inline size_t ZPageCache::available() const { |
31 inline size_t ZPageCache::available() const { |
32 return _available; |
32 return _available; |
33 } |
33 } |
34 |
34 |
35 template <typename Closure> |
|
36 inline void ZPageCache::pages_do(Closure* cl) const { |
|
37 // Small |
|
38 ZPerNUMAConstIterator<ZList<ZPage> > iter_numa(&_small); |
|
39 for (const ZList<ZPage>* list; iter_numa.next(&list);) { |
|
40 ZListIterator<ZPage> iter_small(list); |
|
41 for (ZPage* page; iter_small.next(&page);) { |
|
42 cl->do_page(page); |
|
43 } |
|
44 } |
|
45 |
|
46 // Medium |
|
47 ZListIterator<ZPage> iter_medium(&_medium); |
|
48 for (ZPage* page; iter_medium.next(&page);) { |
|
49 cl->do_page(page); |
|
50 } |
|
51 |
|
52 // Large |
|
53 ZListIterator<ZPage> iter_large(&_large); |
|
54 for (ZPage* page; iter_large.next(&page);) { |
|
55 cl->do_page(page); |
|
56 } |
|
57 } |
|
58 |
|
59 #endif // SHARE_GC_Z_ZPAGECACHE_INLINE_HPP |
35 #endif // SHARE_GC_Z_ZPAGECACHE_INLINE_HPP |