< prev index next >
src/hotspot/share/gc/g1/g1HeapVerifier.cpp
Print this page
rev 54087 : imported patch 8218668-reorganize-collection-set
*** 369,378 ****
--- 369,379 ----
bool failures() {
return _failures;
}
bool do_heap_region(HeapRegion* r) {
+ guarantee(!r->has_index_in_opt_cset(), "Region %u still has opt collection set index %u", r->hrm_index(), r->index_in_opt_cset());
guarantee(!r->is_young() || r->rem_set()->is_complete(), "Remembered set for Young region %u must be complete, is %s", r->hrm_index(), r->rem_set()->get_state_str());
// Humongous and old regions regions might be of any state, so can't check here.
guarantee(!r->is_free() || !r->rem_set()->is_tracked(), "Remembered set for free region %u must be untracked, is %s", r->hrm_index(), r->rem_set()->get_state_str());
// Verify that the continues humongous regions' remembered set state matches the
// one from the starts humongous region.
< prev index next >