--- old/src/hotspot/share/gc/g1/g1CollectionSet.cpp 2018-02-09 12:17:22.402875048 +0100 +++ new/src/hotspot/share/gc/g1/g1CollectionSet.cpp 2018-02-09 12:17:21.972861989 +0100 @@ -186,9 +186,9 @@ do { HeapRegion* r = G1CollectedHeap::heap()->region_at(_collection_set_regions[cur_pos]); - bool result = cl->do_heap_region(r); + bool result = cl->doHeapRegion(r); if (result) { - cl->set_incomplete(); + cl->incomplete(); return; } cur_pos++; @@ -292,7 +292,7 @@ public: G1VerifyYoungAgesClosure() : HeapRegionClosure(), _valid(true) { } - virtual bool do_heap_region(HeapRegion* r) { + virtual bool doHeapRegion(HeapRegion* r) { guarantee(r->is_young(), "Region must be young but is %s", r->get_type_str()); SurvRateGroup* group = r->surv_rate_group(); @@ -332,7 +332,7 @@ public: G1PrintCollectionSetClosure(outputStream* st) : HeapRegionClosure(), _st(st) { } - virtual bool do_heap_region(HeapRegion* r) { + virtual bool doHeapRegion(HeapRegion* r) { assert(r->in_collection_set(), "Region %u should be in collection set", r->hrm_index()); _st->print_cr(" " HR_FORMAT ", P: " PTR_FORMAT "N: " PTR_FORMAT ", age: %4d", HR_FORMAT_PARAMS(r), @@ -524,7 +524,7 @@ FREE_C_HEAP_ARRAY(int, _heap_region_indices); } - virtual bool do_heap_region(HeapRegion* r) { + virtual bool doHeapRegion(HeapRegion* r) { const int idx = r->young_index_in_cset(); assert(idx > -1, "Young index must be set for all regions in the incremental collection set but is not for region %u.", r->hrm_index());