8276833: G1: Make G1EvacFailureRegions::par_iterate const
Reviewed-by: tschatzl, ayang
This commit is contained in:
parent
0699220830
commit
c8b0ee6b8a
@ -56,7 +56,7 @@ void G1EvacFailureRegions::post_collection() {
|
||||
|
||||
void G1EvacFailureRegions::par_iterate(HeapRegionClosure* closure,
|
||||
HeapRegionClaimer* _hrclaimer,
|
||||
uint worker_id) {
|
||||
uint worker_id) const {
|
||||
G1CollectedHeap::heap()->par_iterate_regions_array(closure,
|
||||
_hrclaimer,
|
||||
_evac_failure_regions,
|
||||
|
@ -56,7 +56,7 @@ public:
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user