diff --git a/src/hotspot/share/gc/shenandoah/heuristics/shenandoahGenerationalHeuristics.cpp b/src/hotspot/share/gc/shenandoah/heuristics/shenandoahGenerationalHeuristics.cpp index 9ead89aa426..07938bd1195 100644 --- a/src/hotspot/share/gc/shenandoah/heuristics/shenandoahGenerationalHeuristics.cpp +++ b/src/hotspot/share/gc/shenandoah/heuristics/shenandoahGenerationalHeuristics.cpp @@ -77,7 +77,7 @@ void ShenandoahGenerationalHeuristics::choose_collection_set(ShenandoahCollectio for (size_t i = 0; i < num_regions; i++) { ShenandoahHeapRegion* region = heap->get_region(i); - assert(!region->is_active_alloc_region(), "Not expecting any active alloc region at the time"); + assert(!region->is_active_alloc_region(), "There should be no active alloc regions when choosing collection set"); if (!_generation->contains(region)) { continue; } diff --git a/src/hotspot/share/gc/shenandoah/heuristics/shenandoahHeuristics.cpp b/src/hotspot/share/gc/shenandoah/heuristics/shenandoahHeuristics.cpp index db0197eb93c..d39c6eccc7e 100644 --- a/src/hotspot/share/gc/shenandoah/heuristics/shenandoahHeuristics.cpp +++ b/src/hotspot/share/gc/shenandoah/heuristics/shenandoahHeuristics.cpp @@ -99,7 +99,7 @@ void ShenandoahHeuristics::choose_collection_set(ShenandoahCollectionSet* collec for (size_t i = 0; i < num_regions; i++) { ShenandoahHeapRegion* region = heap->get_region(i); - assert(!region->is_active_alloc_region(), "Not expecting any active alloc region at the time"); + assert(!region->is_active_alloc_region(), "There should be no active alloc regions when rebuilding free set"); size_t garbage = region->garbage(); total_garbage += garbage; diff --git a/src/hotspot/share/gc/shenandoah/shenandoahFreeSet.cpp b/src/hotspot/share/gc/shenandoah/shenandoahFreeSet.cpp index 06f6e401a88..c5bb0f49706 100644 --- a/src/hotspot/share/gc/shenandoah/shenandoahFreeSet.cpp +++ b/src/hotspot/share/gc/shenandoah/shenandoahFreeSet.cpp @@ -1951,7 +1951,7 @@ void ShenandoahFreeSet::find_regions_with_alloc_capacity(size_t &young_trashed_r size_t num_regions = _heap->num_regions(); for (size_t idx = 0; idx < num_regions; idx++) { ShenandoahHeapRegion* region = _heap->get_region(idx); - assert(!region->is_active_alloc_region(), "Not expecting any active alloc region at the time"); + assert(!region->is_active_alloc_region(), "There should be no active alloc regions when choosing collection set"); if (region->is_trash()) { // Trashed regions represent immediate garbage identified by final mark and regions that had been in the collection // partition but have not yet been "cleaned up" following update refs.