Skip to content

Commit

Permalink
8332961: Parallel: Limit PSParallelCompact::verify_complete range
Browse files Browse the repository at this point in the history
Reviewed-by: tschatzl, gli
  • Loading branch information
albertnetymk committed May 31, 2024
1 parent 95c8a69 commit bb4aed9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/hotspot/share/gc/parallel/psParallelCompact.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2130,14 +2130,14 @@ void PSParallelCompact::verify_filler_in_dense_prefix() {
}

void PSParallelCompact::verify_complete(SpaceId space_id) {
// All Regions between space bottom() to new_top() should be marked as filled
// and all Regions between new_top() and top() should be available (i.e.,
// should have been emptied).
// All Regions served as compaction targets, from dense_prefix() to
// new_top(), should be marked as filled and all Regions between new_top()
// and top() should be available (i.e., should have been emptied).
ParallelCompactData& sd = summary_data();
SpaceInfo si = _space_info[space_id];
HeapWord* new_top_addr = sd.region_align_up(si.new_top());
HeapWord* old_top_addr = sd.region_align_up(si.space()->top());
const size_t beg_region = sd.addr_to_region_idx(si.space()->bottom());
const size_t beg_region = sd.addr_to_region_idx(si.dense_prefix());
const size_t new_top_region = sd.addr_to_region_idx(new_top_addr);
const size_t old_top_region = sd.addr_to_region_idx(old_top_addr);

Expand Down

1 comment on commit bb4aed9

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