8292858: G1: Remove redundant check in G1FlushHumongousCandidateRemSets

Reviewed-by: tschatzl, kbarrett
This commit is contained in:
Albert Mingkun Yang 2022-08-30 19:36:41 +00:00
parent 6e248279cf
commit 3d0ab2b1aa

View File

@ -1322,8 +1322,7 @@ class G1MergeHeapRootsTask : public WorkerTask {
virtual bool do_heap_region(HeapRegion* r) {
G1CollectedHeap* g1h = G1CollectedHeap::heap();
if (!r->is_starts_humongous() ||
!g1h->region_attr(r->hrm_index()).is_humongous() ||
if (!g1h->region_attr(r->hrm_index()).is_humongous() ||
r->rem_set()->is_empty()) {
return false;
}