8201244: Clean out unnecessary includes of heap headers
authorstefank
Tue, 10 Apr 2018 12:21:05 +0200
changeset 49734 f946776e9354
parent 49733 6f0a3ea5ab75
child 49735 b3c09ab95c1a
8201244: Clean out unnecessary includes of heap headers Reviewed-by: coleenp, shade
src/hotspot/cpu/aarch64/macroAssembler_aarch64.cpp
src/hotspot/cpu/arm/assembler_arm.cpp
src/hotspot/cpu/arm/assembler_arm_32.cpp
src/hotspot/cpu/arm/assembler_arm_64.cpp
src/hotspot/cpu/arm/interp_masm_arm.cpp
src/hotspot/cpu/arm/macroAssembler_arm.cpp
src/hotspot/cpu/ppc/assembler_ppc.cpp
src/hotspot/cpu/ppc/macroAssembler_ppc.cpp
src/hotspot/cpu/s390/assembler_s390.cpp
src/hotspot/cpu/s390/macroAssembler_s390.cpp
src/hotspot/cpu/sparc/macroAssembler_sparc.cpp
src/hotspot/cpu/x86/assembler_x86.cpp
src/hotspot/cpu/x86/macroAssembler_x86.cpp
src/hotspot/cpu/zero/assembler_zero.cpp
src/hotspot/share/classfile/stringTable.cpp
src/hotspot/share/gc/cms/cmsCollectorPolicy.cpp
src/hotspot/share/gc/cms/cmsHeap.cpp
src/hotspot/share/gc/serial/tenuredGeneration.cpp
src/hotspot/share/gc/shared/cardGeneration.cpp
src/hotspot/share/gc/shared/cardTableBarrierSet.cpp
src/hotspot/share/gc/shared/collectorPolicy.cpp
src/hotspot/share/gc/shared/commandLineFlagConstraintsGC.cpp
src/hotspot/share/gc/shared/threadLocalAllocBuffer.cpp
src/hotspot/share/memory/allocation.cpp
src/hotspot/share/memory/arena.cpp
src/hotspot/share/memory/heapInspection.cpp
src/hotspot/share/prims/jvmtiTagMap.hpp
src/hotspot/share/runtime/interfaceSupport.cpp
src/hotspot/share/runtime/java.cpp
src/hotspot/share/services/heapDumper.cpp
--- a/src/hotspot/cpu/aarch64/macroAssembler_aarch64.cpp	Tue Apr 10 12:20:00 2018 +0200
+++ b/src/hotspot/cpu/aarch64/macroAssembler_aarch64.cpp	Tue Apr 10 12:21:05 2018 +0200
@@ -50,7 +50,6 @@
 #if INCLUDE_ALL_GCS
 #include "gc/g1/g1BarrierSet.hpp"
 #include "gc/g1/g1CardTable.hpp"
-#include "gc/g1/g1CollectedHeap.inline.hpp"
 #include "gc/g1/heapRegion.hpp"
 #endif
 
--- a/src/hotspot/cpu/arm/assembler_arm.cpp	Tue Apr 10 12:20:00 2018 +0200
+++ b/src/hotspot/cpu/arm/assembler_arm.cpp	Tue Apr 10 12:21:05 2018 +0200
@@ -44,7 +44,6 @@
 #include "utilities/macros.hpp"
 #if INCLUDE_ALL_GCS
 #include "gc/g1/g1BarrierSet.hpp"
-#include "gc/g1/g1CollectedHeap.inline.hpp"
 #include "gc/g1/heapRegion.hpp"
 #endif // INCLUDE_ALL_GCS
 
--- a/src/hotspot/cpu/arm/assembler_arm_32.cpp	Tue Apr 10 12:20:00 2018 +0200
+++ b/src/hotspot/cpu/arm/assembler_arm_32.cpp	Tue Apr 10 12:21:05 2018 +0200
@@ -44,7 +44,6 @@
 #include "utilities/macros.hpp"
 #if INCLUDE_ALL_GCS
 #include "gc/g1/g1BarrierSet.hpp"
-#include "gc/g1/g1CollectedHeap.inline.hpp"
 #include "gc/g1/heapRegion.hpp"
 #endif // INCLUDE_ALL_GCS
 
--- a/src/hotspot/cpu/arm/assembler_arm_64.cpp	Tue Apr 10 12:20:00 2018 +0200
+++ b/src/hotspot/cpu/arm/assembler_arm_64.cpp	Tue Apr 10 12:21:05 2018 +0200
@@ -44,7 +44,6 @@
 #include "utilities/macros.hpp"
 #if INCLUDE_ALL_GCS
 #include "gc/g1/g1BarrierSet.hpp"
-#include "gc/g1/g1CollectedHeap.inline.hpp"
 #include "gc/g1/heapRegion.hpp"
 #endif // INCLUDE_ALL_GCS
 
--- a/src/hotspot/cpu/arm/interp_masm_arm.cpp	Tue Apr 10 12:20:00 2018 +0200
+++ b/src/hotspot/cpu/arm/interp_masm_arm.cpp	Tue Apr 10 12:21:05 2018 +0200
@@ -45,7 +45,6 @@
 
 #if INCLUDE_ALL_GCS
 #include "gc/g1/g1BarrierSet.hpp"
-#include "gc/g1/g1CollectedHeap.inline.hpp"
 #include "gc/g1/heapRegion.hpp"
 #endif // INCLUDE_ALL_GCS
 
--- a/src/hotspot/cpu/arm/macroAssembler_arm.cpp	Tue Apr 10 12:20:00 2018 +0200
+++ b/src/hotspot/cpu/arm/macroAssembler_arm.cpp	Tue Apr 10 12:21:05 2018 +0200
@@ -46,7 +46,6 @@
 #if INCLUDE_ALL_GCS
 #include "gc/g1/g1BarrierSet.hpp"
 #include "gc/g1/g1CardTable.hpp"
-#include "gc/g1/g1CollectedHeap.inline.hpp"
 #include "gc/g1/heapRegion.hpp"
 #endif
 
--- a/src/hotspot/cpu/ppc/assembler_ppc.cpp	Tue Apr 10 12:20:00 2018 +0200
+++ b/src/hotspot/cpu/ppc/assembler_ppc.cpp	Tue Apr 10 12:21:05 2018 +0200
@@ -39,7 +39,6 @@
 #include "utilities/macros.hpp"
 #if INCLUDE_ALL_GCS
 #include "gc/g1/g1BarrierSet.hpp"
-#include "gc/g1/g1CollectedHeap.inline.hpp"
 #include "gc/g1/heapRegion.hpp"
 #endif // INCLUDE_ALL_GCS
 
--- a/src/hotspot/cpu/ppc/macroAssembler_ppc.cpp	Tue Apr 10 12:20:00 2018 +0200
+++ b/src/hotspot/cpu/ppc/macroAssembler_ppc.cpp	Tue Apr 10 12:21:05 2018 +0200
@@ -46,7 +46,6 @@
 #if INCLUDE_ALL_GCS
 #include "gc/g1/g1BarrierSet.hpp"
 #include "gc/g1/g1CardTable.hpp"
-#include "gc/g1/g1CollectedHeap.inline.hpp"
 #include "gc/g1/heapRegion.hpp"
 #endif // INCLUDE_ALL_GCS
 #ifdef COMPILER2
--- a/src/hotspot/cpu/s390/assembler_s390.cpp	Tue Apr 10 12:20:00 2018 +0200
+++ b/src/hotspot/cpu/s390/assembler_s390.cpp	Tue Apr 10 12:21:05 2018 +0200
@@ -40,7 +40,6 @@
 #include "utilities/macros.hpp"
 #if INCLUDE_ALL_GCS
 #include "gc/g1/g1BarrierSet.hpp"
-#include "gc/g1/g1CollectedHeap.inline.hpp"
 #include "gc/g1/heapRegion.hpp"
 #endif
 
--- a/src/hotspot/cpu/s390/macroAssembler_s390.cpp	Tue Apr 10 12:20:00 2018 +0200
+++ b/src/hotspot/cpu/s390/macroAssembler_s390.cpp	Tue Apr 10 12:21:05 2018 +0200
@@ -54,7 +54,6 @@
 #if INCLUDE_ALL_GCS
 #include "gc/g1/g1BarrierSet.hpp"
 #include "gc/g1/g1CardTable.hpp"
-#include "gc/g1/g1CollectedHeap.inline.hpp"
 #include "gc/g1/heapRegion.hpp"
 #endif
 
--- a/src/hotspot/cpu/sparc/macroAssembler_sparc.cpp	Tue Apr 10 12:20:00 2018 +0200
+++ b/src/hotspot/cpu/sparc/macroAssembler_sparc.cpp	Tue Apr 10 12:21:05 2018 +0200
@@ -48,7 +48,6 @@
 #if INCLUDE_ALL_GCS
 #include "gc/g1/g1BarrierSet.hpp"
 #include "gc/g1/g1CardTable.hpp"
-#include "gc/g1/g1CollectedHeap.inline.hpp"
 #include "gc/g1/heapRegion.hpp"
 #endif // INCLUDE_ALL_GCS
 #ifdef COMPILER2
--- a/src/hotspot/cpu/x86/assembler_x86.cpp	Tue Apr 10 12:20:00 2018 +0200
+++ b/src/hotspot/cpu/x86/assembler_x86.cpp	Tue Apr 10 12:21:05 2018 +0200
@@ -38,7 +38,6 @@
 #include "utilities/macros.hpp"
 #if INCLUDE_ALL_GCS
 #include "gc/g1/g1BarrierSet.hpp"
-#include "gc/g1/g1CollectedHeap.inline.hpp"
 #include "gc/g1/heapRegion.hpp"
 #endif // INCLUDE_ALL_GCS
 
--- a/src/hotspot/cpu/x86/macroAssembler_x86.cpp	Tue Apr 10 12:20:00 2018 +0200
+++ b/src/hotspot/cpu/x86/macroAssembler_x86.cpp	Tue Apr 10 12:21:05 2018 +0200
@@ -48,7 +48,6 @@
 #if INCLUDE_ALL_GCS
 #include "gc/g1/g1BarrierSet.hpp"
 #include "gc/g1/g1CardTable.hpp"
-#include "gc/g1/g1CollectedHeap.inline.hpp"
 #include "gc/g1/heapRegion.hpp"
 #endif // INCLUDE_ALL_GCS
 #include "crc32c.h"
--- a/src/hotspot/cpu/zero/assembler_zero.cpp	Tue Apr 10 12:20:00 2018 +0200
+++ b/src/hotspot/cpu/zero/assembler_zero.cpp	Tue Apr 10 12:21:05 2018 +0200
@@ -39,7 +39,6 @@
 #include "utilities/macros.hpp"
 #if INCLUDE_ALL_GCS
 #include "gc/g1/g1BarrierSet.hpp"
-#include "gc/g1/g1CollectedHeap.inline.hpp"
 #include "gc/g1/heapRegion.hpp"
 #endif // INCLUDE_ALL_GCS
 
--- a/src/hotspot/share/classfile/stringTable.cpp	Tue Apr 10 12:20:00 2018 +0200
+++ b/src/hotspot/share/classfile/stringTable.cpp	Tue Apr 10 12:21:05 2018 +0200
@@ -45,7 +45,6 @@
 #include "utilities/hashtable.inline.hpp"
 #include "utilities/macros.hpp"
 #if INCLUDE_ALL_GCS
-#include "gc/g1/g1CollectedHeap.hpp"
 #include "gc/g1/g1StringDedup.hpp"
 #endif
 
--- a/src/hotspot/share/gc/cms/cmsCollectorPolicy.cpp	Tue Apr 10 12:20:00 2018 +0200
+++ b/src/hotspot/share/gc/cms/cmsCollectorPolicy.cpp	Tue Apr 10 12:21:05 2018 +0200
@@ -30,7 +30,6 @@
 #include "gc/shared/collectorPolicy.hpp"
 #include "gc/shared/gcLocker.hpp"
 #include "gc/shared/gcPolicyCounters.hpp"
-#include "gc/shared/genCollectedHeap.hpp"
 #include "gc/shared/generationSpec.hpp"
 #include "gc/shared/space.hpp"
 #include "gc/shared/vmGCOperations.hpp"
--- a/src/hotspot/share/gc/cms/cmsHeap.cpp	Tue Apr 10 12:20:00 2018 +0200
+++ b/src/hotspot/share/gc/cms/cmsHeap.cpp	Tue Apr 10 12:21:05 2018 +0200
@@ -30,6 +30,7 @@
 #include "gc/cms/cmsHeap.hpp"
 #include "gc/cms/parNewGeneration.hpp"
 #include "gc/cms/vmCMSOperations.hpp"
+#include "gc/shared/genCollectedHeap.hpp"
 #include "gc/shared/genMemoryPools.hpp"
 #include "gc/shared/genOopClosures.inline.hpp"
 #include "gc/shared/strongRootsScope.hpp"
--- a/src/hotspot/share/gc/serial/tenuredGeneration.cpp	Tue Apr 10 12:20:00 2018 +0200
+++ b/src/hotspot/share/gc/serial/tenuredGeneration.cpp	Tue Apr 10 12:21:05 2018 +0200
@@ -30,6 +30,7 @@
 #include "gc/shared/collectorCounters.hpp"
 #include "gc/shared/gcTimer.hpp"
 #include "gc/shared/gcTrace.hpp"
+#include "gc/shared/genCollectedHeap.hpp"
 #include "gc/shared/genOopClosures.inline.hpp"
 #include "gc/shared/generationSpec.hpp"
 #include "gc/shared/space.hpp"
--- a/src/hotspot/share/gc/shared/cardGeneration.cpp	Tue Apr 10 12:20:00 2018 +0200
+++ b/src/hotspot/share/gc/shared/cardGeneration.cpp	Tue Apr 10 12:21:05 2018 +0200
@@ -28,6 +28,7 @@
 #include "gc/shared/cardGeneration.inline.hpp"
 #include "gc/shared/cardTableRS.hpp"
 #include "gc/shared/gcLocker.hpp"
+#include "gc/shared/genCollectedHeap.hpp"
 #include "gc/shared/genOopClosures.inline.hpp"
 #include "gc/shared/generationSpec.hpp"
 #include "gc/shared/space.inline.hpp"
--- a/src/hotspot/share/gc/shared/cardTableBarrierSet.cpp	Tue Apr 10 12:20:00 2018 +0200
+++ b/src/hotspot/share/gc/shared/cardTableBarrierSet.cpp	Tue Apr 10 12:21:05 2018 +0200
@@ -26,7 +26,6 @@
 #include "gc/shared/cardTableBarrierSetAssembler.hpp"
 #include "gc/shared/cardTableBarrierSet.inline.hpp"
 #include "gc/shared/collectedHeap.hpp"
-#include "gc/shared/genCollectedHeap.hpp"
 #include "gc/shared/space.inline.hpp"
 #include "logging/log.hpp"
 #include "memory/virtualspace.hpp"
--- a/src/hotspot/share/gc/shared/collectorPolicy.cpp	Tue Apr 10 12:20:00 2018 +0200
+++ b/src/hotspot/share/gc/shared/collectorPolicy.cpp	Tue Apr 10 12:21:05 2018 +0200
@@ -28,7 +28,6 @@
 #include "gc/shared/collectorPolicy.hpp"
 #include "gc/shared/gcLocker.hpp"
 #include "gc/shared/gcPolicyCounters.hpp"
-#include "gc/shared/genCollectedHeap.hpp"
 #include "gc/shared/generationSpec.hpp"
 #include "gc/shared/space.hpp"
 #include "gc/shared/vmGCOperations.hpp"
--- a/src/hotspot/share/gc/shared/commandLineFlagConstraintsGC.cpp	Tue Apr 10 12:20:00 2018 +0200
+++ b/src/hotspot/share/gc/shared/commandLineFlagConstraintsGC.cpp	Tue Apr 10 12:21:05 2018 +0200
@@ -26,7 +26,6 @@
 #include "gc/shared/collectedHeap.hpp"
 #include "gc/shared/collectorPolicy.hpp"
 #include "gc/shared/commandLineFlagConstraintsGC.hpp"
-#include "gc/shared/genCollectedHeap.hpp"
 #include "gc/shared/plab.hpp"
 #include "gc/shared/threadLocalAllocBuffer.hpp"
 #include "runtime/arguments.hpp"
--- a/src/hotspot/share/gc/shared/threadLocalAllocBuffer.cpp	Tue Apr 10 12:20:00 2018 +0200
+++ b/src/hotspot/share/gc/shared/threadLocalAllocBuffer.cpp	Tue Apr 10 12:21:05 2018 +0200
@@ -23,7 +23,6 @@
  */
 
 #include "precompiled.hpp"
-#include "gc/shared/genCollectedHeap.hpp"
 #include "gc/shared/threadLocalAllocBuffer.inline.hpp"
 #include "logging/log.hpp"
 #include "memory/resourceArea.hpp"
--- a/src/hotspot/share/memory/allocation.cpp	Tue Apr 10 12:20:00 2018 +0200
+++ b/src/hotspot/share/memory/allocation.cpp	Tue Apr 10 12:21:05 2018 +0200
@@ -23,7 +23,6 @@
  */
 
 #include "precompiled.hpp"
-#include "gc/shared/genCollectedHeap.hpp"
 #include "memory/allocation.hpp"
 #include "memory/allocation.inline.hpp"
 #include "memory/arena.hpp"
--- a/src/hotspot/share/memory/arena.cpp	Tue Apr 10 12:20:00 2018 +0200
+++ b/src/hotspot/share/memory/arena.cpp	Tue Apr 10 12:21:05 2018 +0200
@@ -23,7 +23,6 @@
  */
 
 #include "precompiled.hpp"
-#include "gc/shared/genCollectedHeap.hpp"
 #include "memory/allocation.hpp"
 #include "memory/allocation.inline.hpp"
 #include "memory/metaspaceShared.hpp"
--- a/src/hotspot/share/memory/heapInspection.cpp	Tue Apr 10 12:20:00 2018 +0200
+++ b/src/hotspot/share/memory/heapInspection.cpp	Tue Apr 10 12:21:05 2018 +0200
@@ -27,7 +27,6 @@
 #include "classfile/moduleEntry.hpp"
 #include "classfile/systemDictionary.hpp"
 #include "gc/shared/collectedHeap.hpp"
-#include "gc/shared/genCollectedHeap.hpp"
 #include "memory/heapInspection.hpp"
 #include "memory/resourceArea.hpp"
 #include "oops/oop.inline.hpp"
@@ -35,9 +34,6 @@
 #include "utilities/globalDefinitions.hpp"
 #include "utilities/macros.hpp"
 #include "utilities/stack.inline.hpp"
-#if INCLUDE_ALL_GCS
-#include "gc/parallel/parallelScavengeHeap.hpp"
-#endif // INCLUDE_ALL_GCS
 
 // HeapInspection
 
--- a/src/hotspot/share/prims/jvmtiTagMap.hpp	Tue Apr 10 12:20:00 2018 +0200
+++ b/src/hotspot/share/prims/jvmtiTagMap.hpp	Tue Apr 10 12:21:05 2018 +0200
@@ -28,7 +28,6 @@
 #define SHARE_VM_PRIMS_JVMTITAGMAP_HPP
 
 #include "gc/shared/collectedHeap.hpp"
-#include "gc/shared/genCollectedHeap.hpp"
 #include "jvmtifiles/jvmti.h"
 #include "jvmtifiles/jvmtiEnv.hpp"
 #include "memory/allocation.hpp"
--- a/src/hotspot/share/runtime/interfaceSupport.cpp	Tue Apr 10 12:20:00 2018 +0200
+++ b/src/hotspot/share/runtime/interfaceSupport.cpp	Tue Apr 10 12:21:05 2018 +0200
@@ -25,7 +25,6 @@
 #include "precompiled.hpp"
 #include "gc/shared/collectedHeap.hpp"
 #include "gc/shared/collectedHeap.inline.hpp"
-#include "gc/shared/genCollectedHeap.hpp"
 #include "memory/resourceArea.hpp"
 #include "runtime/atomic.hpp"
 #include "runtime/frame.inline.hpp"
--- a/src/hotspot/share/runtime/java.cpp	Tue Apr 10 12:20:00 2018 +0200
+++ b/src/hotspot/share/runtime/java.cpp	Tue Apr 10 12:21:05 2018 +0200
@@ -31,7 +31,6 @@
 #include "code/codeCache.hpp"
 #include "compiler/compileBroker.hpp"
 #include "compiler/compilerOracle.hpp"
-#include "gc/shared/genCollectedHeap.hpp"
 #include "interpreter/bytecodeHistogram.hpp"
 #if INCLUDE_JVMCI
 #include "jvmci/jvmciCompiler.hpp"
--- a/src/hotspot/share/services/heapDumper.cpp	Tue Apr 10 12:20:00 2018 +0200
+++ b/src/hotspot/share/services/heapDumper.cpp	Tue Apr 10 12:21:05 2018 +0200
@@ -28,7 +28,6 @@
 #include "classfile/systemDictionary.hpp"
 #include "classfile/vmSymbols.hpp"
 #include "gc/shared/gcLocker.hpp"
-#include "gc/shared/genCollectedHeap.hpp"
 #include "gc/shared/vmGCOperations.hpp"
 #include "memory/allocation.inline.hpp"
 #include "memory/resourceArea.hpp"
@@ -52,9 +51,6 @@
 #include "services/threadService.hpp"
 #include "utilities/macros.hpp"
 #include "utilities/ostream.hpp"
-#if INCLUDE_ALL_GCS
-#include "gc/parallel/parallelScavengeHeap.hpp"
-#endif // INCLUDE_ALL_GCS
 
 /*
  * HPROF binary format - description copied from: