File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/hotspot/share/gc/parallel Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments