Skip to content

Commit 72d1066

Browse files
committed
8364722: Parallel: Move CLDG mark clearing to the end of full GC
Reviewed-by: tschatzl, zgu
1 parent 0ceb366 commit 72d1066

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -685,6 +685,9 @@ void PSParallelCompact::post_compact()
685685
CodeCache::on_gc_marking_cycle_finish();
686686
CodeCache::arm_all_nmethods();
687687

688+
// Need to clear claim bits for the next full-gc (marking and adjust-pointers).
689+
ClassLoaderDataGraph::clear_claimed_marks();
690+
688691
for (unsigned int id = old_space_id; id < last_space_id; ++id) {
689692
// Clear the marking bitmap, summary data and split info.
690693
clear_data_covering_space(SpaceId(id));
@@ -1288,9 +1291,6 @@ void PSParallelCompact::marking_phase(ParallelOldTracer *gc_tracer) {
12881291
ClassLoaderDataGraph::purge(true /* at_safepoint */);
12891292
DEBUG_ONLY(MetaspaceUtils::verify();)
12901293
}
1291-
1292-
// Need to clear claim bits for the next mark.
1293-
ClassLoaderDataGraph::clear_claimed_marks();
12941294
}
12951295

12961296
{

0 commit comments

Comments
 (0)