Skip to content
This repository was archived by the owner on Aug 27, 2022. It is now read-only.
/ lanai Public archive

Commit 3d1b1a6

Browse files
committedJul 7, 2020
8248170: Excessive include of compiledMethod, codeCache, javaClasses and systemDictionary
Reviewed-by: dholmes, kvn, coleenp, stefank
1 parent e584237 commit 3d1b1a6

34 files changed

+43
-19
lines changed
 

‎src/hotspot/cpu/aarch64/c1_CodeStubs_aarch64.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1999, 2018, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1999, 2020, Oracle and/or its affiliates. All rights reserved.
33
* Copyright (c) 2014, Red Hat Inc. All rights reserved.
44
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
55
*
@@ -30,6 +30,7 @@
3030
#include "c1/c1_LIRAssembler.hpp"
3131
#include "c1/c1_MacroAssembler.hpp"
3232
#include "c1/c1_Runtime1.hpp"
33+
#include "classfile/javaClasses.hpp"
3334
#include "nativeInst_aarch64.hpp"
3435
#include "runtime/sharedRuntime.hpp"
3536
#include "vmreg_aarch64.inline.hpp"

‎src/hotspot/cpu/aarch64/nativeInst_aarch64.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1997, 2020, Oracle and/or its affiliates. All rights reserved.
33
* Copyright (c) 2014, 2018, Red Hat Inc. All rights reserved.
44
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
55
*
@@ -25,6 +25,7 @@
2525

2626
#include "precompiled.hpp"
2727
#include "asm/macroAssembler.hpp"
28+
#include "code/codeCache.hpp"
2829
#include "code/compiledIC.hpp"
2930
#include "memory/resourceArea.hpp"
3031
#include "nativeInst_aarch64.hpp"

‎src/hotspot/cpu/aarch64/relocInfo_aarch64.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1998, 2011, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1998, 2020, Oracle and/or its affiliates. All rights reserved.
33
* Copyright (c) 2014, Red Hat Inc. All rights reserved.
44
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
55
*
@@ -25,6 +25,7 @@
2525

2626
#include "precompiled.hpp"
2727
#include "asm/macroAssembler.hpp"
28+
#include "code/compiledMethod.hpp"
2829
#include "code/relocInfo.hpp"
2930
#include "nativeInst_aarch64.hpp"
3031
#include "oops/oop.inline.hpp"

‎src/hotspot/cpu/aarch64/sharedRuntime_aarch64.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
#include "precompiled.hpp"
2727
#include "asm/macroAssembler.hpp"
2828
#include "asm/macroAssembler.inline.hpp"
29+
#include "code/codeCache.hpp"
2930
#include "code/debugInfoRec.hpp"
3031
#include "code/icBuffer.hpp"
3132
#include "code/vtableStubs.hpp"

‎src/hotspot/cpu/arm/c1_CodeStubs_arm.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
#include "c1/c1_LIRAssembler.hpp"
3030
#include "c1/c1_MacroAssembler.hpp"
3131
#include "c1/c1_Runtime1.hpp"
32+
#include "classfile/javaClasses.hpp"
3233
#include "memory/universe.hpp"
3334
#include "nativeInst_arm.hpp"
3435
#include "runtime/sharedRuntime.hpp"

‎src/hotspot/cpu/ppc/c1_CodeStubs_ppc.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
#include "c1/c1_LIRAssembler.hpp"
3131
#include "c1/c1_MacroAssembler.hpp"
3232
#include "c1/c1_Runtime1.hpp"
33+
#include "classfile/javaClasses.hpp"
3334
#include "nativeInst_ppc.hpp"
3435
#include "runtime/sharedRuntime.hpp"
3536
#include "utilities/macros.hpp"

‎src/hotspot/cpu/s390/c1_CodeStubs_s390.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
#include "c1/c1_LIRAssembler.hpp"
3131
#include "c1/c1_MacroAssembler.hpp"
3232
#include "c1/c1_Runtime1.hpp"
33+
#include "classfile/javaClasses.hpp"
3334
#include "nativeInst_s390.hpp"
3435
#include "runtime/sharedRuntime.hpp"
3536
#include "utilities/align.hpp"

‎src/hotspot/cpu/x86/c1_CodeStubs_x86.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
#include "c1/c1_LIRAssembler.hpp"
2929
#include "c1/c1_MacroAssembler.hpp"
3030
#include "c1/c1_Runtime1.hpp"
31+
#include "classfile/javaClasses.hpp"
3132
#include "nativeInst_x86.hpp"
3233
#include "runtime/sharedRuntime.hpp"
3334
#include "utilities/align.hpp"

‎src/hotspot/os/windows/os_windows.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
#include "classfile/classLoader.hpp"
3131
#include "classfile/systemDictionary.hpp"
3232
#include "classfile/vmSymbols.hpp"
33+
#include "code/codeCache.hpp"
3334
#include "code/icBuffer.hpp"
3435
#include "code/vtableStubs.hpp"
3536
#include "compiler/compileBroker.hpp"

‎src/hotspot/share/adlc/main.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1997, 2020, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -211,6 +211,7 @@ int main(int argc, char *argv[])
211211
AD.addInclude(AD._CPP_file, "adfiles", get_basename(AD._VM_file._name));
212212
AD.addInclude(AD._CPP_file, "adfiles", get_basename(AD._HPP_file._name));
213213
AD.addInclude(AD._CPP_file, "memory/allocation.inline.hpp");
214+
AD.addInclude(AD._CPP_file, "code/codeCache.hpp");
214215
AD.addInclude(AD._CPP_file, "code/compiledIC.hpp");
215216
AD.addInclude(AD._CPP_file, "code/nativeInst.hpp");
216217
AD.addInclude(AD._CPP_file, "code/vmreg.inline.hpp");

‎src/hotspot/share/ci/ciEnv.hpp

-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727

2828
#include "ci/ciClassList.hpp"
2929
#include "ci/ciObjectFactory.hpp"
30-
#include "classfile/systemDictionary.hpp"
3130
#include "code/debugInfoRec.hpp"
3231
#include "code/dependencies.hpp"
3332
#include "code/exceptionHandlerTable.hpp"

‎src/hotspot/share/ci/ciMethod.hpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1999, 2019, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1999, 2020, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -38,6 +38,7 @@ class MethodLiveness;
3838
class Arena;
3939
class BCEscapeAnalyzer;
4040
class InlineTree;
41+
class xmlStream;
4142

4243
// Whether profiling found an oop to be always, never or sometimes
4344
// null

‎src/hotspot/share/code/dependencies.hpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2005, 2019, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2005, 2020, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -29,7 +29,6 @@
2929
#include "ci/ciKlass.hpp"
3030
#include "ci/ciMethod.hpp"
3131
#include "ci/ciMethodHandle.hpp"
32-
#include "classfile/systemDictionary.hpp"
3332
#include "code/compressedStream.hpp"
3433
#include "code/nmethod.hpp"
3534
#include "memory/resourceArea.hpp"

‎src/hotspot/share/code/icBuffer.hpp

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1997, 2019, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1997, 2020, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -34,6 +34,9 @@
3434
#include "utilities/debug.hpp"
3535
#include "utilities/macros.hpp"
3636

37+
class CompiledIC;
38+
class CompiledICHolder;
39+
3740
//
3841
// For CompiledIC's:
3942
//

‎src/hotspot/share/gc/g1/c2/g1BarrierSetC2.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
*/
2424

2525
#include "precompiled.hpp"
26+
#include "classfile/javaClasses.hpp"
2627
#include "gc/g1/c2/g1BarrierSetC2.hpp"
2728
#include "gc/g1/g1BarrierSet.hpp"
2829
#include "gc/g1/g1BarrierSetRuntime.hpp"

‎src/hotspot/share/gc/shared/c1/barrierSetC1.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
#include "precompiled.hpp"
2626
#include "c1/c1_Defs.hpp"
2727
#include "c1/c1_LIRGenerator.hpp"
28+
#include "classfile/javaClasses.hpp"
2829
#include "gc/shared/c1/barrierSetC1.hpp"
2930
#include "utilities/macros.hpp"
3031

‎src/hotspot/share/gc/shenandoah/c2/shenandoahSupport.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525
#include "precompiled.hpp"
2626

27+
#include "classfile/javaClasses.hpp"
2728
#include "gc/shenandoah/c2/shenandoahSupport.hpp"
2829
#include "gc/shenandoah/c2/shenandoahBarrierSetC2.hpp"
2930
#include "gc/shenandoah/shenandoahBarrierSetAssembler.hpp"

‎src/hotspot/share/jfr/recorder/jfrRecorder.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2012, 2019, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2012, 2020, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -23,6 +23,7 @@
2323
*/
2424

2525
#include "precompiled.hpp"
26+
#include "classfile/javaClasses.hpp"
2627
#include "jfr/dcmd/jfrDcmds.hpp"
2728
#include "jfr/instrumentation/jfrJvmtiAgent.hpp"
2829
#include "jfr/jni/jfrJavaSupport.hpp"

‎src/hotspot/share/jfr/recorder/service/jfrOptionSet.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2012, 2019, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2012, 2020, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -23,6 +23,7 @@
2323
*/
2424

2525
#include "precompiled.hpp"
26+
#include "classfile/javaClasses.hpp"
2627
#include "jfr/dcmd/jfrDcmds.hpp"
2728
#include "jfr/recorder/service/jfrMemorySizer.hpp"
2829
#include "jfr/recorder/service/jfrOptionSet.hpp"

‎src/hotspot/share/jvmci/jvmciEnv.hpp

+1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ class JVMCIObjectArray;
3535
class JVMCIPrimitiveArray;
3636
class JVMCICompiler;
3737
class JVMCIRuntime;
38+
class nmethodLocker;
3839

3940
#define JVMCI_EXCEPTION_CONTEXT \
4041
JavaThread* thread=JavaThread::current(); \

‎src/hotspot/share/jvmci/vmStructs_jvmci.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
*/
2424

2525
#include "precompiled.hpp"
26+
#include "code/codeCache.hpp"
2627
#include "compiler/compileBroker.hpp"
2728
#include "gc/shared/collectedHeap.hpp"
2829
#include "jvmci/jvmciCodeInstaller.hpp"

‎src/hotspot/share/oops/symbol.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
#include "oops/symbol.hpp"
3737
#include "runtime/atomic.hpp"
3838
#include "runtime/os.hpp"
39+
#include "runtime/signature.hpp"
3940
#include "utilities/utf8.hpp"
4041

4142
uint32_t Symbol::pack_hash_and_refcount(short hash, int refcount) {

‎src/hotspot/share/opto/compile.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#include "asm/macroAssembler.hpp"
2727
#include "asm/macroAssembler.inline.hpp"
2828
#include "ci/ciReplay.hpp"
29-
#include "classfile/systemDictionary.hpp"
29+
#include "classfile/javaClasses.hpp"
3030
#include "code/exceptionHandlerTable.hpp"
3131
#include "code/nmethod.hpp"
3232
#include "compiler/compileBroker.hpp"

‎src/hotspot/share/opto/graphKit.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525
#include "precompiled.hpp"
2626
#include "ci/ciUtilities.hpp"
27+
#include "classfile/javaClasses.hpp"
2728
#include "compiler/compileLog.hpp"
2829
#include "gc/shared/barrierSet.hpp"
2930
#include "gc/shared/c2/barrierSetC2.hpp"

‎src/hotspot/share/opto/memnode.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
*/
2424

2525
#include "precompiled.hpp"
26-
#include "classfile/systemDictionary.hpp"
26+
#include "classfile/javaClasses.hpp"
2727
#include "compiler/compileLog.hpp"
2828
#include "gc/shared/barrierSet.hpp"
2929
#include "gc/shared/c2/barrierSetC2.hpp"

‎src/hotspot/share/opto/stringopts.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
*/
2424

2525
#include "precompiled.hpp"
26+
#include "classfile/javaClasses.hpp"
2627
#include "compiler/compileLog.hpp"
2728
#include "opto/addnode.hpp"
2829
#include "opto/callGenerator.hpp"

‎src/hotspot/share/opto/type.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
#include "precompiled.hpp"
2626
#include "ci/ciMethodData.hpp"
2727
#include "ci/ciTypeFlow.hpp"
28+
#include "classfile/javaClasses.hpp"
2829
#include "classfile/symbolTable.hpp"
29-
#include "classfile/systemDictionary.hpp"
3030
#include "compiler/compileLog.hpp"
3131
#include "libadt/dict.hpp"
3232
#include "memory/oopFactory.hpp"

‎src/hotspot/share/prims/methodHandles.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
#ifndef SHARE_PRIMS_METHODHANDLES_HPP
2626
#define SHARE_PRIMS_METHODHANDLES_HPP
2727

28-
#include "classfile/javaClasses.hpp"
28+
#include "classfile/systemDictionary.hpp"
2929
#include "classfile/vmSymbols.hpp"
3030
#include "runtime/frame.hpp"
3131
#include "runtime/globals.hpp"

‎src/hotspot/share/runtime/notificationThread.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
*/
2424

2525
#include "precompiled.hpp"
26+
#include "classfile/javaClasses.hpp"
2627
#include "memory/universe.hpp"
2728
#include "runtime/interfaceSupport.inline.hpp"
2829
#include "runtime/javaCalls.hpp"

‎src/hotspot/share/runtime/serviceThread.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
*/
2424

2525
#include "precompiled.hpp"
26+
#include "classfile/javaClasses.hpp"
2627
#include "classfile/protectionDomainCache.hpp"
2728
#include "classfile/stringTable.hpp"
2829
#include "classfile/symbolTable.hpp"

‎src/hotspot/share/runtime/thread.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
#define SHARE_RUNTIME_THREAD_HPP
2727

2828
#include "jni.h"
29-
#include "code/compiledMethod.hpp"
3029
#include "gc/shared/gcThreadLocalData.hpp"
3130
#include "gc/shared/threadLocalAllocBuffer.hpp"
3231
#include "memory/allocation.hpp"
@@ -68,6 +67,7 @@ class ParkEvent;
6867
class Parker;
6968
class MonitorInfo;
7069

70+
class AbstractCompiler;
7171
class ciEnv;
7272
class CompileThread;
7373
class CompileLog;

‎src/hotspot/share/runtime/vmOperations.hpp

-2
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,10 @@
2525
#ifndef SHARE_RUNTIME_VMOPERATIONS_HPP
2626
#define SHARE_RUNTIME_VMOPERATIONS_HPP
2727

28-
#include "classfile/javaClasses.hpp"
2928
#include "memory/allocation.hpp"
3029
#include "oops/oop.hpp"
3130
#include "runtime/thread.hpp"
3231
#include "runtime/threadSMR.hpp"
33-
#include "code/codeCache.hpp"
3432

3533
// The following classes are used for operations
3634
// initiated by a Java thread but that must

‎src/hotspot/share/services/diagnosticCommand.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
#include "jvm.h"
2727
#include "classfile/classLoaderHierarchyDCmd.hpp"
2828
#include "classfile/classLoaderStats.hpp"
29+
#include "code/codeCache.hpp"
2930
#include "compiler/compileBroker.hpp"
3031
#include "compiler/directivesParser.hpp"
3132
#include "gc/shared/gcVMOperations.hpp"

‎src/hotspot/share/services/threadIdTable.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
/*
3-
* Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
3+
* Copyright (c) 2019, 2020, Oracle and/or its affiliates. All rights reserved.
44
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
55
*
66
* This code is free software; you can redistribute it and/or modify it
@@ -24,6 +24,7 @@
2424
*/
2525

2626
#include "precompiled.hpp"
27+
#include "classfile/javaClasses.hpp"
2728
#include "runtime/atomic.hpp"
2829
#include "runtime/interfaceSupport.inline.hpp"
2930
#include "runtime/thread.hpp"

0 commit comments

Comments
 (0)
This repository has been archived.