Skip to content

Commit 7a6c176

Browse files
committed
8260736: Shenandoah: Cleanup includes in ShenandoahGC and families
Reviewed-by: shade, rkennke
1 parent 4a89733 commit 7a6c176

10 files changed

+7
-33
lines changed

src/hotspot/share/gc/shenandoah/shenandoahConcurrentGC.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626

2727
#include "gc/shared/barrierSetNMethod.hpp"
2828
#include "gc/shared/collectorCounters.hpp"
29-
#include "gc/shenandoah/heuristics/shenandoahHeuristics.hpp"
3029
#include "gc/shenandoah/shenandoahCollectorPolicy.hpp"
3130
#include "gc/shenandoah/shenandoahConcurrentGC.hpp"
3231
#include "gc/shenandoah/shenandoahFreeSet.hpp"
@@ -44,7 +43,6 @@
4443
#include "gc/shenandoah/shenandoahWorkGroup.hpp"
4544
#include "gc/shenandoah/shenandoahWorkerPolicy.hpp"
4645
#include "prims/jvmtiTagMap.hpp"
47-
#include "runtime/vmThread.hpp"
4846
#include "utilities/events.hpp"
4947

5048
ShenandoahConcurrentGC::ShenandoahConcurrentGC() :

src/hotspot/share/gc/shenandoah/shenandoahConcurrentMark.cpp

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,9 @@
2424

2525
#include "precompiled.hpp"
2626

27-
#include "classfile/symbolTable.hpp"
28-
#include "code/codeCache.hpp"
29-
30-
#include "gc/shared/weakProcessor.inline.hpp"
31-
#include "gc/shared/gcTimer.hpp"
32-
#include "gc/shared/gcTrace.hpp"
3327
#include "gc/shared/satbMarkQueue.hpp"
3428
#include "gc/shared/strongRootsScope.hpp"
35-
29+
#include "gc/shared/taskTerminator.hpp"
3630
#include "gc/shenandoah/shenandoahBarrierSet.inline.hpp"
3731
#include "gc/shenandoah/shenandoahClosures.inline.hpp"
3832
#include "gc/shenandoah/shenandoahConcurrentMark.hpp"
@@ -45,13 +39,8 @@
4539
#include "gc/shenandoah/shenandoahStringDedup.hpp"
4640
#include "gc/shenandoah/shenandoahTaskqueue.inline.hpp"
4741
#include "gc/shenandoah/shenandoahUtils.hpp"
48-
4942
#include "memory/iterator.inline.hpp"
50-
#include "memory/metaspace.hpp"
5143
#include "memory/resourceArea.hpp"
52-
#include "oops/oop.inline.hpp"
53-
#include "runtime/handles.inline.hpp"
54-
5544

5645
class ShenandoahUpdateRootsTask : public AbstractGangTask {
5746
private:

src/hotspot/share/gc/shenandoah/shenandoahConcurrentMark.hpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,10 @@
2525
#ifndef SHARE_GC_SHENANDOAH_SHENANDOAHCONCURRENTMARK_HPP
2626
#define SHARE_GC_SHENANDOAH_SHENANDOAHCONCURRENTMARK_HPP
2727

28-
#include "gc/shared/taskqueue.hpp"
29-
#include "gc/shared/taskTerminator.hpp"
3028
#include "gc/shenandoah/shenandoahMark.hpp"
31-
#include "gc/shenandoah/shenandoahOopClosures.hpp"
32-
#include "gc/shenandoah/shenandoahTaskqueue.hpp"
3329

34-
class ShenandoahStrDedupQueue;
35-
class ShenandoahReferenceProcessor;
30+
class ShenandoahConcurrentMarkingTask;
31+
class ShenandoahFinalMarkingTask;
3632

3733
class ShenandoahConcurrentMark: public ShenandoahMark {
3834
friend class ShenandoahConcurrentMarkingTask;

src/hotspot/share/gc/shenandoah/shenandoahDegeneratedGC.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
#include "precompiled.hpp"
2626

2727
#include "gc/shared/collectorCounters.hpp"
28-
#include "gc/shenandoah/heuristics/shenandoahHeuristics.hpp"
2928
#include "gc/shenandoah/shenandoahCollectorPolicy.hpp"
3029
#include "gc/shenandoah/shenandoahConcurrentMark.hpp"
3130
#include "gc/shenandoah/shenandoahDegeneratedGC.hpp"

src/hotspot/share/gc/shenandoah/shenandoahFullGC.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@
2323
*/
2424

2525
#include "precompiled.hpp"
26-
#include "code/codeCache.hpp"
26+
2727
#include "gc/shared/gcTraceTime.inline.hpp"
2828
#include "gc/shared/preservedMarks.inline.hpp"
2929
#include "gc/shared/tlab_globals.hpp"
30-
#include "gc/shenandoah/shenandoahForwarding.inline.hpp"
30+
#include "gc/shenandoah/heuristics/shenandoahHeuristics.hpp"
3131
#include "gc/shenandoah/shenandoahConcurrentGC.hpp"
3232
#include "gc/shenandoah/shenandoahCollectionSet.hpp"
3333
#include "gc/shenandoah/shenandoahFreeSet.hpp"
@@ -39,6 +39,7 @@
3939
#include "gc/shenandoah/shenandoahHeap.inline.hpp"
4040
#include "gc/shenandoah/shenandoahHeapRegion.inline.hpp"
4141
#include "gc/shenandoah/shenandoahMarkingContext.inline.hpp"
42+
#include "gc/shenandoah/shenandoahMetrics.hpp"
4243
#include "gc/shenandoah/shenandoahOopClosures.inline.hpp"
4344
#include "gc/shenandoah/shenandoahReferenceProcessor.hpp"
4445
#include "gc/shenandoah/shenandoahRootProcessor.inline.hpp"
@@ -47,7 +48,6 @@
4748
#include "gc/shenandoah/shenandoahVerifier.hpp"
4849
#include "gc/shenandoah/shenandoahVMOperations.hpp"
4950
#include "gc/shenandoah/shenandoahWorkerPolicy.hpp"
50-
#include "gc/shenandoah/heuristics/shenandoahHeuristics.hpp"
5151
#include "memory/metaspace.hpp"
5252
#include "memory/universe.hpp"
5353
#include "oops/compressedOops.inline.hpp"

src/hotspot/share/gc/shenandoah/shenandoahFullGC.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,7 @@
2727

2828
#include "gc/shared/gcTimer.hpp"
2929
#include "gc/shenandoah/shenandoahGC.hpp"
30-
#include "gc/shenandoah/shenandoahHeap.hpp"
3130
#include "gc/shenandoah/shenandoahHeapRegionSet.hpp"
32-
#include "gc/shenandoah/shenandoahMetrics.hpp"
3331

3432
/**
3533
* This implements Full GC (e.g. when invoking System.gc()) using a mark-compact algorithm.

src/hotspot/share/gc/shenandoah/shenandoahMark.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@
2525

2626
#include "precompiled.hpp"
2727

28-
#include "gc/shared/gcTrace.hpp"
29-
#include "gc/shared/referenceProcessorPhaseTimes.hpp"
3028
#include "gc/shenandoah/shenandoahBarrierSet.hpp"
3129
#include "gc/shenandoah/shenandoahClosures.inline.hpp"
3230
#include "gc/shenandoah/shenandoahMark.inline.hpp"
@@ -35,7 +33,6 @@
3533
#include "gc/shenandoah/shenandoahTaskqueue.inline.hpp"
3634
#include "gc/shenandoah/shenandoahUtils.hpp"
3735
#include "gc/shenandoah/shenandoahVerifier.hpp"
38-
#include "memory/iterator.inline.hpp"
3936

4037
ShenandoahMarkRefsSuperClosure::ShenandoahMarkRefsSuperClosure(ShenandoahObjToScanQueue* q, ShenandoahReferenceProcessor* rp) :
4138
MetadataVisitingOopIterateClosure(rp),

src/hotspot/share/gc/shenandoah/shenandoahMark.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727

2828
#include "gc/shared/taskTerminator.hpp"
2929
#include "gc/shenandoah/shenandoahOopClosures.hpp"
30-
#include "gc/shenandoah/shenandoahPhaseTimings.hpp"
3130
#include "gc/shenandoah/shenandoahTaskqueue.hpp"
3231

3332
class ShenandoahCMDrainMarkingStackClosure;

src/hotspot/share/gc/shenandoah/shenandoahSTWMark.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
#include "precompiled.hpp"
2727

2828
#include "gc/shared/strongRootsScope.hpp"
29+
#include "gc/shared/taskTerminator.hpp"
2930
#include "gc/shared/workgroup.hpp"
3031
#include "gc/shenandoah/shenandoahClosures.inline.hpp"
3132
#include "gc/shenandoah/shenandoahMark.inline.hpp"
@@ -35,7 +36,6 @@
3536
#include "gc/shenandoah/shenandoahSTWMark.hpp"
3637
#include "gc/shenandoah/shenandoahVerifier.hpp"
3738

38-
3939
class ShenandoahSTWMarkTask : public AbstractGangTask {
4040
private:
4141
ShenandoahSTWMark* const _mark;

src/hotspot/share/gc/shenandoah/shenandoahSTWMark.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@
2525
#ifndef SHARE_GC_SHENANDOAH_SHENANDOAHSTWMARK_HPP
2626
#define SHARE_GC_SHENANDOAH_SHENANDOAHSTWMARK_HPP
2727

28-
#include "gc/shared/taskTerminator.hpp"
2928
#include "gc/shenandoah/shenandoahMark.hpp"
30-
#include "gc/shenandoah/shenandoahRootProcessor.hpp"
3129

3230
class ShenandoahSTWMarkTask;
3331

0 commit comments

Comments
 (0)