Skip to content

Commit

Permalink
8290080: G1: Remove unnecessary is-obj-dead check in HeapRegion::do_o…
Browse files Browse the repository at this point in the history
…ops_on_memregion_in_humongous

Reviewed-by: tschatzl, iwalulya
  • Loading branch information
albertnetymk committed Jul 14, 2022
1 parent adf40d2 commit 109e21a
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/hotspot/share/gc/g1/heapRegion.inline.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -374,12 +374,6 @@ HeapWord* HeapRegion::do_oops_on_memregion_in_humongous(MemRegion mr,
// Only filler objects follow a humongous object in the containing
// regions, and we can ignore those. So only process the one
// humongous object.
HeapWord* const pb = in_gc_pause ? sr->parsable_bottom() : sr->parsable_bottom_acquire();
if (sr->is_obj_dead(obj, pb)) {
// The object is dead. There can be no other object in this region, so return
// the end of that region.
return end();
}
if (obj->is_objArray() || (sr->bottom() < mr.start())) {
// objArrays are always marked precisely, so limit processing
// with mr. Non-objArrays might be precisely marked, and since
Expand Down

1 comment on commit 109e21a

@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.