--- old/src/hotspot/share/gc/g1/g1CollectedHeap.cpp 2018-11-20 15:15:47.995355057 +0100 +++ new/src/hotspot/share/gc/g1/g1CollectedHeap.cpp 2018-11-20 15:15:47.506339895 +0100 @@ -1016,7 +1016,6 @@ // Make sure we'll choose a new allocation region afterwards. _allocator->release_mutator_alloc_region(); _allocator->abandon_gc_alloc_regions(); - g1_rem_set()->cleanupHRRS(); // We may have added regions to the current incremental collection // set between the last GC or pause and now. We need to clear the @@ -2968,13 +2967,6 @@ evacuation_info.set_collectionset_regions(collection_set()->region_length()); - // Make sure the remembered sets are up to date. This needs to be - // done before register_humongous_regions_with_cset(), because the - // remembered sets are used there to choose eager reclaim candidates. - // If the remembered sets are not up to date we might miss some - // entries that need to be handled. - g1_rem_set()->cleanupHRRS(); - register_humongous_regions_with_cset(); assert(_verifier->check_cset_fast_test(), "Inconsistency in the InCSetState table.");