--- old/src/hotspot/share/gc/g1/g1RemSet.hpp 2019-11-19 11:06:12.734985951 +0100 +++ new/src/hotspot/share/gc/g1/g1RemSet.hpp 2019-11-19 11:06:12.310983849 +0100 @@ -102,8 +102,11 @@ void prepare_for_scan_heap_roots(); // Cleans the card table from temporary duplicate detection information. void cleanup_after_scan_heap_roots(); - // Prepares the given region for heap root scanning. - void prepare_for_scan_heap_roots(uint region_idx); + // Excludes the given region from heap root scanning. + void exclude_region_from_scan(uint region_idx); + // Creates a snapshot of the current _top values at the start of collection to + // filter out card marks that we do not want to scan. + void prepare_region_for_scan(HeapRegion* region); // Do work for regions in the current increment of the collection set, scanning // non-card based (heap) roots.