Skip to content

Commit

Permalink
8292858: G1: Remove redundant check in G1FlushHumongousCandidateRemSets
Browse files Browse the repository at this point in the history
Reviewed-by: tschatzl, kbarrett
  • Loading branch information
albertnetymk committed Aug 30, 2022
1 parent 6e24827 commit 3d0ab2b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/hotspot/share/gc/g1/g1RemSet.cpp
Expand Up @@ -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;
}
Expand Down

1 comment on commit 3d0ab2b

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.