8231117: Remove G1EvacuationRootClosures::raw_strong_oops()

Reviewed-by: kbarrett, sjohanss
This commit is contained in:
Thomas Schatzl 2019-09-23 11:36:53 +02:00
parent b18626ae7a
commit 9ccc00d1dd
3 changed files with 1 additions and 8 deletions

@ -830,7 +830,7 @@ class G1ScanCollectionSetRegionClosure : public HeapRegionClosure {
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));

@ -47,8 +47,6 @@ public:
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 @@ public:
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; }

@ -53,9 +53,6 @@ public:
// 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;