< prev index next >
src/hotspot/share/gc/g1/g1OopStarChunkedList.inline.hpp
Print this page
rev 54087 : imported patch 8218668-reorganize-collection-set
*** 70,84 ****
c = next;
}
}
template <typename T>
! void G1OopStarChunkedList::chunks_do(ChunkedList<T*, mtGC>* head, OopClosure* cl) {
for (ChunkedList<T*, mtGC>* c = head; c != NULL; c = c->next_used()) {
for (size_t i = 0; i < c->size(); i++) {
T* p = c->at(i);
cl->do_oop(p);
}
}
}
#endif // SHARE_GC_G1_G1OOPSTARCHUNKEDLIST_INLINE_HPP
--- 70,87 ----
c = next;
}
}
template <typename T>
! size_t G1OopStarChunkedList::chunks_do(ChunkedList<T*, mtGC>* head, OopClosure* cl) {
! size_t result = 0;
for (ChunkedList<T*, mtGC>* c = head; c != NULL; c = c->next_used()) {
+ result += c->size();
for (size_t i = 0; i < c->size(); i++) {
T* p = c->at(i);
cl->do_oop(p);
}
}
+ return result;
}
#endif // SHARE_GC_G1_G1OOPSTARCHUNKEDLIST_INLINE_HPP
< prev index next >