Skip to content
Browse files
8276833: G1: Make G1EvacFailureRegions::par_iterate const
Reviewed-by: tschatzl, ayang
  • Loading branch information
Hamlin Li committed Nov 10, 2021
1 parent 0699220 commit c8b0ee6b8a0c1bca8f8357e786f24c8cb6dd7310
Showing 2 changed files with 2 additions and 2 deletions.
@@ -56,7 +56,7 @@ void G1EvacFailureRegions::post_collection() {

void G1EvacFailureRegions::par_iterate(HeapRegionClosure* closure,
HeapRegionClaimer* _hrclaimer,
uint worker_id) {
uint worker_id) const {
@@ -56,7 +56,7 @@ class G1EvacFailureRegions {
bool contains(uint region_idx) const;
void par_iterate(HeapRegionClosure* closure,
HeapRegionClaimer* _hrclaimer,
uint worker_id);
uint worker_id) const;

uint num_regions_failed_evacuation() const {
return Atomic::load(&_evac_failure_regions_cur_length);

1 comment on commit c8b0ee6

Copy link

@openjdk-notifier openjdk-notifier bot commented on c8b0ee6 Nov 10, 2021

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.