Skip to content

Commit 452a5fb

Browse files
committed
8343507: Parallel: Fail if verify_complete finds incorrect states
Reviewed-by: tschatzl, kbarrett
1 parent 7580199 commit 452a5fb

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

src/hotspot/share/gc/parallel/psParallelCompact.cpp

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1912,18 +1912,14 @@ void PSParallelCompact::verify_complete(SpaceId space_id) {
19121912
size_t cur_region;
19131913
for (cur_region = beg_region; cur_region < new_top_region; ++cur_region) {
19141914
const RegionData* const c = sd.region(cur_region);
1915-
if (!c->completed()) {
1916-
log_warning(gc)("region " SIZE_FORMAT " not filled: destination_count=%u",
1917-
cur_region, c->destination_count());
1918-
}
1915+
assert(c->completed(), "region %zu not filled: destination_count=%u",
1916+
cur_region, c->destination_count());
19191917
}
19201918

19211919
for (cur_region = new_top_region; cur_region < old_top_region; ++cur_region) {
19221920
const RegionData* const c = sd.region(cur_region);
1923-
if (!c->available()) {
1924-
log_warning(gc)("region " SIZE_FORMAT " not empty: destination_count=%u",
1925-
cur_region, c->destination_count());
1926-
}
1921+
assert(c->available(), "region %zu not empty: destination_count=%u",
1922+
cur_region, c->destination_count());
19271923
}
19281924
}
19291925
#endif // #ifdef ASSERT

0 commit comments

Comments
 (0)