Skip to content

Commit 5cdcce1

Browse files
committedJan 23, 2021
8260307: Do not include method.hpp in frame.hpp
Reviewed-by: lfoltan, coleenp
1 parent 6f2a394 commit 5cdcce1

21 files changed

+41
-17
lines changed
 

‎src/hotspot/cpu/arm/interp_masm_arm.hpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2008, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2008, 2021, 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
@@ -27,6 +27,7 @@
2727

2828
#include "asm/macroAssembler.hpp"
2929
#include "interpreter/invocationCounter.hpp"
30+
#include "oops/method.hpp"
3031
#include "runtime/frame.hpp"
3132
#include "prims/jvmtiExport.hpp"
3233

‎src/hotspot/cpu/x86/interp_masm_x86.hpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1997, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1997, 2021, 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
@@ -27,6 +27,7 @@
2727

2828
#include "asm/macroAssembler.hpp"
2929
#include "interpreter/invocationCounter.hpp"
30+
#include "oops/method.hpp"
3031
#include "runtime/frame.hpp"
3132

3233
// This file specializes the assember with interpreter-specific macros

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1999, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1999, 2021, 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,6 +29,7 @@
2929
#include "ci/ciFlags.hpp"
3030
#include "ci/ciKlass.hpp"
3131
#include "ci/ciSymbol.hpp"
32+
#include "oops/instanceKlass.hpp"
3233

3334
// ciInstanceKlass
3435
//

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

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1999, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1999, 2021, 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
@@ -31,6 +31,8 @@
3131
#include "ci/ciSignature.hpp"
3232
#include "classfile/vmIntrinsics.hpp"
3333
#include "compiler/methodLiveness.hpp"
34+
#include "compiler/compilerOracle.hpp"
35+
#include "oops/method.hpp"
3436
#include "runtime/handles.hpp"
3537
#include "utilities/bitMap.hpp"
3638

‎src/hotspot/share/classfile/resolutionErrors.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2005, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2005, 2021, 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
@@ -26,6 +26,7 @@
2626
#include "classfile/resolutionErrors.hpp"
2727
#include "memory/allocation.hpp"
2828
#include "memory/resourceArea.hpp"
29+
#include "oops/instanceKlass.hpp"
2930
#include "oops/oop.inline.hpp"
3031
#include "runtime/handles.inline.hpp"
3132
#include "runtime/safepoint.hpp"

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2015, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2015, 2021, 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
@@ -28,6 +28,7 @@
2828
#include "code/codeBlob.hpp"
2929
#include "code/pcDesc.hpp"
3030
#include "oops/metadata.hpp"
31+
#include "oops/method.hpp"
3132

3233
class Dependencies;
3334
class ExceptionHandlerTable;

‎src/hotspot/share/compiler/methodMatcher.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2016, 2021, 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,6 +29,7 @@
2929
#include "compiler/methodMatcher.hpp"
3030
#include "memory/oopFactory.hpp"
3131
#include "memory/resourceArea.hpp"
32+
#include "oops/method.hpp"
3233
#include "oops/oop.inline.hpp"
3334

3435
// The JVM specification defines the allowed characters.

‎src/hotspot/share/gc/parallel/mutableNUMASpace.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
#include "gc/shared/workgroup.hpp"
3131
#include "memory/allocation.inline.hpp"
3232
#include "oops/oop.inline.hpp"
33+
#include "oops/typeArrayOop.hpp"
3334
#include "runtime/atomic.hpp"
3435
#include "runtime/java.hpp"
3536
#include "runtime/thread.inline.hpp"

‎src/hotspot/share/gc/shared/threadLocalAllocBuffer.cpp

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

2525
#include "precompiled.hpp"
26+
#include "compiler/compilerDefinitions.hpp"
2627
#include "gc/shared/collectedHeap.hpp"
2728
#include "gc/shared/threadLocalAllocBuffer.inline.hpp"
2829
#include "gc/shared/tlab_globals.hpp"

‎src/hotspot/share/interpreter/abstractInterpreter.hpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1997, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1997, 2021, 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,6 +29,7 @@
2929
#include "classfile/vmIntrinsics.hpp"
3030
#include "code/stubs.hpp"
3131
#include "interpreter/bytecodes.hpp"
32+
#include "oops/method.hpp"
3233
#include "runtime/frame.hpp"
3334
#include "runtime/thread.hpp"
3435
#include "runtime/vmThread.hpp"

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2000, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2000, 2021, 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 "compiler/compilerDefinitions.hpp"
2627
#include "gc/shared/gcConfig.hpp"
2728
#include "jvm.h"
2829
#include "jvmci/jvmci_globals.hpp"

‎src/hotspot/share/memory/metaspace.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2011, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2011, 2021, 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
@@ -24,6 +24,7 @@
2424

2525
#include "precompiled.hpp"
2626
#include "aot/aotLoader.hpp"
27+
#include "classfile/classLoaderData.hpp"
2728
#include "gc/shared/collectedHeap.hpp"
2829
#include "logging/log.hpp"
2930
#include "logging/logStream.hpp"

‎src/hotspot/share/memory/metaspace/printMetaspaceInfoKlassClosure.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2018, 2021, Oracle and/or its affiliates. All rights reserved.
33
* Copyright (c) 2018, SAP and/or its affiliates.
44
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
55
*
@@ -26,6 +26,7 @@
2626
#include "memory/metaspace/printMetaspaceInfoKlassClosure.hpp"
2727
#include "memory/metaspaceShared.hpp"
2828
#include "memory/resourceArea.hpp"
29+
#include "oops/klass.hpp"
2930
#include "oops/reflectionAccessorImplKlassHelper.hpp"
3031
#include "utilities/globalDefinitions.hpp"
3132
#include "utilities/ostream.hpp"

‎src/hotspot/share/memory/metaspaceCounters.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2012, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2012, 2021, 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 "memory/metaspace.hpp"
2627
#include "memory/metaspaceCounters.hpp"
2728
#include "memory/resourceArea.hpp"
2829
#include "runtime/globals.hpp"

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2013, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2013, 2021, 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
@@ -24,6 +24,7 @@
2424
#include "precompiled.hpp"
2525
#include "compiler/compiler_globals.hpp"
2626
#include "memory/metaspaceClosure.hpp"
27+
#include "oops/method.hpp"
2728
#include "oops/methodCounters.hpp"
2829
#include "runtime/handles.inline.hpp"
2930

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

+1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242

4343
// Forward declarations
4444

45+
struct JvmtiCachedClassFileData;
4546
class JvmtiEventControllerPrivate;
4647
class JvmtiManageCapabilities;
4748
class JvmtiEnv;

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

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
#include "classfile/moduleEntry.hpp"
3030
#include "classfile/stringTable.hpp"
3131
#include "classfile/symbolTable.hpp"
32+
#include "compiler/compilerDefinitions.hpp"
3233
#include "gc/shared/gcArguments.hpp"
3334
#include "gc/shared/gcConfig.hpp"
3435
#include "gc/shared/tlab_globals.hpp"

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1997, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1997, 2021, 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
@@ -25,6 +25,7 @@
2525
#ifndef SHARE_RUNTIME_DEOPTIMIZATION_HPP
2626
#define SHARE_RUNTIME_DEOPTIMIZATION_HPP
2727

28+
#include "interpreter/bytecodes.hpp"
2829
#include "memory/allocation.hpp"
2930
#include "runtime/frame.hpp"
3031

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

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1997, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1997, 2021, 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
@@ -25,10 +25,10 @@
2525
#ifndef SHARE_RUNTIME_FRAME_HPP
2626
#define SHARE_RUNTIME_FRAME_HPP
2727

28-
#include "oops/method.hpp"
2928
#include "runtime/basicLock.hpp"
3029
#include "runtime/monitorChunk.hpp"
3130
#include "runtime/registerMap.hpp"
31+
#include "utilities/growableArray.hpp"
3232
#include "utilities/macros.hpp"
3333
#ifdef ZERO
3434
# include "stack_zero.hpp"
@@ -37,9 +37,12 @@
3737
typedef class BytecodeInterpreter* interpreterState;
3838

3939
class CodeBlob;
40+
class CompiledMethod;
4041
class FrameValues;
4142
class vframeArray;
4243
class JavaCallWrapper;
44+
class Method;
45+
class methodHandle;
4346

4447
enum class DerivedPointerIterationMode {
4548
_with_table,

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1997, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1997, 2021, 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
@@ -25,6 +25,7 @@
2525
#include "precompiled.hpp"
2626
#include "memory/allocation.inline.hpp"
2727
#include "oops/constantPool.hpp"
28+
#include "oops/method.hpp"
2829
#include "oops/oop.inline.hpp"
2930
#include "runtime/handles.inline.hpp"
3031
#include "runtime/thread.inline.hpp"

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

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
#include "gc/shared/threadLocalAllocBuffer.hpp"
3131
#include "memory/allocation.hpp"
3232
#include "oops/oop.hpp"
33+
#include "oops/oopHandle.hpp"
3334
#include "runtime/frame.hpp"
3435
#include "runtime/globals.hpp"
3536
#include "runtime/handshake.hpp"

0 commit comments

Comments
 (0)
Please sign in to comment.