--- old/src/hotspot/share/gc/g1/g1RemSet.cpp 2019-09-18 16:58:48.175729188 +0200 +++ new/src/hotspot/share/gc/g1/g1RemSet.cpp 2019-09-18 16:58:47.983728035 +0200 @@ -830,7 +830,7 @@ G1ScanCardClosure scan_cl(G1CollectedHeap::heap(), _pss); G1ScanRSForOptionalClosure cl(G1CollectedHeap::heap(), &scan_cl); - _opt_refs_scanned += opt_rem_set_list->oops_do(&cl, _pss->closures()->raw_strong_oops()); + _opt_refs_scanned += opt_rem_set_list->oops_do(&cl, _pss->closures()->strong_oops()); _opt_refs_memory_used += opt_rem_set_list->used_memory(); event.commit(GCId::current(), _worker_id, G1GCPhaseTimes::phase_name(_scan_phase)); --- old/src/hotspot/share/gc/g1/g1RootClosures.cpp 2019-09-18 16:58:48.899733540 +0200 +++ new/src/hotspot/share/gc/g1/g1RootClosures.cpp 2019-09-18 16:58:48.699732338 +0200 @@ -47,8 +47,6 @@ CodeBlobClosure* strong_codeblobs() { return &_closures._codeblobs; } CodeBlobClosure* weak_codeblobs() { return &_closures._codeblobs; } - OopClosure* raw_strong_oops() { return &_closures._oops; } - bool trace_metadata() { return false; } }; @@ -90,8 +88,6 @@ CodeBlobClosure* strong_codeblobs() { return &_strong._codeblobs; } CodeBlobClosure* weak_codeblobs() { return &_weak._codeblobs; } - OopClosure* raw_strong_oops() { return &_strong._oops; } - // If we are not marking all weak roots then we are tracing // which metadata is alive. bool trace_metadata() { return MarkWeak == G1MarkPromotedFromRoot; } --- old/src/hotspot/share/gc/g1/g1RootClosures.hpp 2019-09-18 16:58:49.583737651 +0200 +++ new/src/hotspot/share/gc/g1/g1RootClosures.hpp 2019-09-18 16:58:49.395736521 +0200 @@ -53,9 +53,6 @@ // CLDs are guaranteed to have been processed. virtual CLDClosure* second_pass_weak_clds() = 0; - // Get a raw oop closure for processing oops, bypassing the flushing above. - virtual OopClosure* raw_strong_oops() = 0; - // Applied to code blobs treated as weak roots. virtual CodeBlobClosure* weak_codeblobs() = 0;