mirror of
https://github.com/openjdk/jdk.git
synced 2026-05-04 18:55:22 +00:00
Update assert message
This commit is contained in:
parent
f7b501348a
commit
07e97ca2bc
@ -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;
|
||||
}
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user