8339369: G1: TestVerificationInConcurrentCycle.java fails with "Missing rem set entry" when using "-XX:G1RSetUpdatingPauseTimePercent=0 -XX:G1UpdateBufferSize=2"

Reviewed-by: tschatzl, kbarrett
This commit is contained in:
Ivan Walulya 2024-09-05 08:18:35 +00:00
parent 28de44da71
commit 96a0502d62
2 changed files with 2 additions and 1 deletions

View File

@ -172,7 +172,6 @@ public:
bool do_heap_region(G1HeapRegion* hr) {
hr->prepare_for_full_gc();
hr->uninstall_group_cardset();
G1CollectedHeap::heap()->prepare_region_for_full_compaction(hr);
_collector->before_marking_update_attribute_table(hr);
return false;

View File

@ -37,6 +37,8 @@ void G1FullGCResetMetadataTask::G1ResetMetadataClosure::reset_region_metadata(G1
}
bool G1FullGCResetMetadataTask::G1ResetMetadataClosure::do_heap_region(G1HeapRegion* hr) {
hr->uninstall_group_cardset();
uint const region_idx = hr->hrm_index();
if (!_collector->is_compaction_target(region_idx)) {
assert(!hr->is_free(), "all free regions should be compaction targets");