Skip to content

Commit c8b0ee6

Browse files
author
Hamlin Li
committed
8276833: G1: Make G1EvacFailureRegions::par_iterate const
Reviewed-by: tschatzl, ayang
1 parent 0699220 commit c8b0ee6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/hotspot/share/gc/g1/g1EvacFailureRegions.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ void G1EvacFailureRegions::post_collection() {
5656

5757
void G1EvacFailureRegions::par_iterate(HeapRegionClosure* closure,
5858
HeapRegionClaimer* _hrclaimer,
59-
uint worker_id) {
59+
uint worker_id) const {
6060
G1CollectedHeap::heap()->par_iterate_regions_array(closure,
6161
_hrclaimer,
6262
_evac_failure_regions,

src/hotspot/share/gc/g1/g1EvacFailureRegions.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class G1EvacFailureRegions {
5656
bool contains(uint region_idx) const;
5757
void par_iterate(HeapRegionClosure* closure,
5858
HeapRegionClaimer* _hrclaimer,
59-
uint worker_id);
59+
uint worker_id) const;
6060

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

0 commit comments

Comments
 (0)