Update assert message

This commit is contained in:
Xiaolong Peng 2026-01-07 13:05:37 -08:00
parent f7b501348a
commit 07e97ca2bc
3 changed files with 3 additions and 3 deletions

View File

@ -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;
}

View File

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

View File

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