--- old/src/hotspot/share/gc/g1/g1RootClosures.cpp 2020-07-07 10:35:55.759150618 +0200 +++ new/src/hotspot/share/gc/g1/g1RootClosures.cpp 2020-07-07 10:35:55.659148859 +0200 @@ -47,17 +47,17 @@ CodeBlobClosure* weak_codeblobs() { return &_closures._codeblobs; } }; -// Closures used during initial mark. +// Closures used during concurrent start. // The treatment of "weak" roots is selectable through the template parameter, // this is usually used to control unloading of classes and interned strings. template -class G1InitialMarkClosures : public G1EvacuationRootClosures { +class G1ConcurrentStartMarkClosures : public G1EvacuationRootClosures { G1SharedClosures _strong; G1SharedClosures _weak; public: - G1InitialMarkClosures(G1CollectedHeap* g1h, - G1ParScanThreadState* pss) : + G1ConcurrentStartMarkClosures(G1CollectedHeap* g1h, + G1ParScanThreadState* pss) : _strong(g1h, pss, /* process_only_dirty_klasses */ false), _weak(g1h, pss, /* process_only_dirty_klasses */ false) {} @@ -73,11 +73,11 @@ G1EvacuationRootClosures* G1EvacuationRootClosures::create_root_closures(G1ParScanThreadState* pss, G1CollectedHeap* g1h) { G1EvacuationRootClosures* res = NULL; - if (g1h->collector_state()->in_initial_mark_gc()) { + if (g1h->collector_state()->in_concurrent_start_gc()) { if (ClassUnloadingWithConcurrentMark) { - res = new G1InitialMarkClosures(g1h, pss); + res = new G1ConcurrentStartMarkClosures(g1h, pss); } else { - res = new G1InitialMarkClosures(g1h, pss); + res = new G1ConcurrentStartMarkClosures(g1h, pss); } } else { res = new G1EvacuationClosures(g1h, pss, g1h->collector_state()->in_young_only_phase());