--- old/src/hotspot/share/gc/g1/g1OopStarChunkedList.inline.hpp 2019-03-13 14:03:09.279251999 +0100 +++ new/src/hotspot/share/gc/g1/g1OopStarChunkedList.inline.hpp 2019-03-13 14:03:09.069246296 +0100 @@ -72,13 +72,16 @@ } template -void G1OopStarChunkedList::chunks_do(ChunkedList* head, OopClosure* cl) { +size_t G1OopStarChunkedList::chunks_do(ChunkedList* head, OopClosure* cl) { + size_t result = 0; for (ChunkedList* 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