Skip to content

Commit

Permalink
8261106: Reduce inclusion of jniHandles.hpp
Browse files Browse the repository at this point in the history
  • Loading branch information
iklam committed Feb 4, 2021
1 parent 69189f8 commit e7f2d09
Show file tree
Hide file tree
Showing 43 changed files with 36 additions and 8 deletions.
1 change: 1 addition & 0 deletions src/hotspot/cpu/aarch64/jvmciCodeInstaller_aarch64.cpp
Expand Up @@ -30,6 +30,7 @@
#include "jvmci/jvmciJavaClasses.hpp"
#include "oops/oop.inline.hpp"
#include "runtime/handles.inline.hpp"
#include "runtime/jniHandles.hpp"
#include "runtime/sharedRuntime.hpp"
#include "vmreg_aarch64.inline.hpp"

Expand Down
1 change: 1 addition & 0 deletions src/hotspot/cpu/aarch64/sharedRuntime_aarch64.cpp
Expand Up @@ -39,6 +39,7 @@
#include "oops/compiledICHolder.hpp"
#include "oops/klass.inline.hpp"
#include "prims/methodHandles.hpp"
#include "runtime/jniHandles.hpp"
#include "runtime/safepointMechanism.hpp"
#include "runtime/sharedRuntime.hpp"
#include "runtime/stubRoutines.hpp"
Expand Down
Expand Up @@ -45,6 +45,7 @@
#include "runtime/arguments.hpp"
#include "runtime/deoptimization.hpp"
#include "runtime/frame.inline.hpp"
#include "runtime/jniHandles.hpp"
#include "runtime/sharedRuntime.hpp"
#include "runtime/stubRoutines.hpp"
#include "runtime/synchronizer.hpp"
Expand Down
1 change: 1 addition & 0 deletions src/hotspot/cpu/arm/jniFastGetField_arm.cpp
Expand Up @@ -30,6 +30,7 @@
#include "prims/jniFastGetField.hpp"
#include "prims/jvm_misc.hpp"
#include "prims/jvmtiExport.hpp"
#include "runtime/jniHandles.hpp"
#include "runtime/safepoint.hpp"

#define __ masm->
Expand Down
1 change: 1 addition & 0 deletions src/hotspot/cpu/arm/macroAssembler_arm.cpp
Expand Up @@ -41,6 +41,7 @@
#include "prims/methodHandles.hpp"
#include "runtime/biasedLocking.hpp"
#include "runtime/interfaceSupport.inline.hpp"
#include "runtime/jniHandles.hpp"
#include "runtime/objectMonitor.hpp"
#include "runtime/os.hpp"
#include "runtime/sharedRuntime.hpp"
Expand Down
1 change: 1 addition & 0 deletions src/hotspot/cpu/arm/sharedRuntime_arm.cpp
Expand Up @@ -34,6 +34,7 @@
#include "oops/compiledICHolder.hpp"
#include "oops/klass.inline.hpp"
#include "prims/methodHandles.hpp"
#include "runtime/jniHandles.hpp"
#include "runtime/sharedRuntime.hpp"
#include "runtime/safepointMechanism.hpp"
#include "runtime/stubRoutines.hpp"
Expand Down
1 change: 1 addition & 0 deletions src/hotspot/cpu/arm/templateInterpreterGenerator_arm.cpp
Expand Up @@ -42,6 +42,7 @@
#include "runtime/arguments.hpp"
#include "runtime/deoptimization.hpp"
#include "runtime/frame.inline.hpp"
#include "runtime/jniHandles.hpp"
#include "runtime/sharedRuntime.hpp"
#include "runtime/stubRoutines.hpp"
#include "runtime/synchronizer.hpp"
Expand Down
1 change: 1 addition & 0 deletions src/hotspot/cpu/ppc/gc/g1/g1BarrierSetAssembler_ppc.cpp
Expand Up @@ -34,6 +34,7 @@
#include "gc/g1/g1ThreadLocalData.hpp"
#include "gc/g1/heapRegion.hpp"
#include "interpreter/interp_masm.hpp"
#include "runtime/jniHandles.hpp"
#include "runtime/sharedRuntime.hpp"
#ifdef COMPILER1
#include "c1/c1_LIRAssembler.hpp"
Expand Down
1 change: 1 addition & 0 deletions src/hotspot/cpu/ppc/sharedRuntime_ppc.cpp
Expand Up @@ -36,6 +36,7 @@
#include "oops/compiledICHolder.hpp"
#include "oops/klass.inline.hpp"
#include "prims/methodHandles.hpp"
#include "runtime/jniHandles.hpp"
#include "runtime/safepointMechanism.hpp"
#include "runtime/sharedRuntime.hpp"
#include "runtime/stubRoutines.hpp"
Expand Down
1 change: 1 addition & 0 deletions src/hotspot/cpu/ppc/templateInterpreterGenerator_ppc.cpp
Expand Up @@ -42,6 +42,7 @@
#include "runtime/arguments.hpp"
#include "runtime/deoptimization.hpp"
#include "runtime/frame.inline.hpp"
#include "runtime/jniHandles.hpp"
#include "runtime/sharedRuntime.hpp"
#include "runtime/stubRoutines.hpp"
#include "runtime/synchronizer.hpp"
Expand Down
1 change: 1 addition & 0 deletions src/hotspot/cpu/s390/gc/g1/g1BarrierSetAssembler_s390.cpp
Expand Up @@ -35,6 +35,7 @@
#include "gc/g1/g1ThreadLocalData.hpp"
#include "gc/g1/heapRegion.hpp"
#include "interpreter/interp_masm.hpp"
#include "runtime/jniHandles.hpp"
#include "runtime/sharedRuntime.hpp"
#ifdef COMPILER1
#include "c1/c1_LIRAssembler.hpp"
Expand Down
Expand Up @@ -28,6 +28,7 @@
#include "gc/shared/barrierSetAssembler.hpp"
#include "interpreter/interp_masm.hpp"
#include "oops/compressedOops.hpp"
#include "runtime/jniHandles.hpp"

#define __ masm->

Expand Down
1 change: 1 addition & 0 deletions src/hotspot/cpu/s390/sharedRuntime_s390.cpp
Expand Up @@ -37,6 +37,7 @@
#include "oops/klass.inline.hpp"
#include "prims/methodHandles.hpp"
#include "registerSaver_s390.hpp"
#include "runtime/jniHandles.hpp"
#include "runtime/safepointMechanism.hpp"
#include "runtime/sharedRuntime.hpp"
#include "runtime/stubRoutines.hpp"
Expand Down
1 change: 1 addition & 0 deletions src/hotspot/cpu/s390/templateInterpreterGenerator_s390.cpp
Expand Up @@ -42,6 +42,7 @@
#include "runtime/arguments.hpp"
#include "runtime/deoptimization.hpp"
#include "runtime/frame.inline.hpp"
#include "runtime/jniHandles.hpp"
#include "runtime/sharedRuntime.hpp"
#include "runtime/stubRoutines.hpp"
#include "runtime/synchronizer.hpp"
Expand Down
1 change: 1 addition & 0 deletions src/hotspot/cpu/x86/jvmciCodeInstaller_x86.cpp
Expand Up @@ -26,6 +26,7 @@
#include "oops/oop.inline.hpp"
#include "runtime/handles.inline.hpp"
#include "runtime/javaCalls.hpp"
#include "runtime/jniHandles.hpp"
#include "runtime/sharedRuntime.hpp"
#include "jvmci/jvmci.hpp"
#include "jvmci/jvmciEnv.hpp"
Expand Down
1 change: 1 addition & 0 deletions src/hotspot/cpu/x86/macroAssembler_x86.cpp
Expand Up @@ -42,6 +42,7 @@
#include "runtime/biasedLocking.hpp"
#include "runtime/flags/flagSetting.hpp"
#include "runtime/interfaceSupport.inline.hpp"
#include "runtime/jniHandles.hpp"
#include "runtime/objectMonitor.hpp"
#include "runtime/os.hpp"
#include "runtime/safepoint.hpp"
Expand Down
1 change: 1 addition & 0 deletions src/hotspot/cpu/x86/sharedRuntime_x86_32.cpp
Expand Up @@ -38,6 +38,7 @@
#include "oops/compiledICHolder.hpp"
#include "oops/klass.inline.hpp"
#include "prims/methodHandles.hpp"
#include "runtime/jniHandles.hpp"
#include "runtime/safepointMechanism.hpp"
#include "runtime/sharedRuntime.hpp"
#include "runtime/stubRoutines.hpp"
Expand Down
1 change: 1 addition & 0 deletions src/hotspot/cpu/x86/sharedRuntime_x86_64.cpp
Expand Up @@ -43,6 +43,7 @@
#include "oops/compiledICHolder.hpp"
#include "oops/klass.inline.hpp"
#include "prims/methodHandles.hpp"
#include "runtime/jniHandles.hpp"
#include "runtime/safepointMechanism.hpp"
#include "runtime/sharedRuntime.hpp"
#include "runtime/stubRoutines.hpp"
Expand Down
1 change: 1 addition & 0 deletions src/hotspot/cpu/x86/templateInterpreterGenerator_x86.cpp
Expand Up @@ -43,6 +43,7 @@
#include "runtime/arguments.hpp"
#include "runtime/deoptimization.hpp"
#include "runtime/frame.inline.hpp"
#include "runtime/jniHandles.hpp"
#include "runtime/sharedRuntime.hpp"
#include "runtime/stubRoutines.hpp"
#include "runtime/synchronizer.hpp"
Expand Down
1 change: 0 additions & 1 deletion src/hotspot/share/ci/ciBaseObject.hpp
Expand Up @@ -27,7 +27,6 @@

#include "ci/ciClassList.hpp"
#include "memory/allocation.hpp"
#include "runtime/jniHandles.hpp"

// ciBaseObject
//
Expand Down
1 change: 0 additions & 1 deletion src/hotspot/share/ci/ciMetadata.hpp
Expand Up @@ -28,7 +28,6 @@
#include "ci/ciBaseObject.hpp"
#include "ci/ciClassList.hpp"
#include "runtime/handles.hpp"
#include "runtime/jniHandles.hpp"

// ciMetadata
//
Expand Down
1 change: 0 additions & 1 deletion src/hotspot/share/ci/ciObject.hpp
Expand Up @@ -28,7 +28,6 @@
#include "ci/ciBaseObject.hpp"
#include "ci/ciClassList.hpp"
#include "runtime/handles.hpp"
#include "runtime/jniHandles.hpp"

// ciObject
//
Expand Down
1 change: 0 additions & 1 deletion src/hotspot/share/classfile/moduleEntry.hpp
Expand Up @@ -29,7 +29,6 @@
#include "classfile/classLoaderData.hpp"
#include "oops/oopHandle.hpp"
#include "oops/symbol.hpp"
#include "runtime/jniHandles.hpp"
#include "runtime/mutexLocker.hpp"
#include "utilities/growableArray.hpp"
#include "utilities/hashtable.hpp"
Expand Down
1 change: 1 addition & 0 deletions src/hotspot/share/compiler/compileTask.cpp
Expand Up @@ -32,6 +32,7 @@
#include "logging/logStream.hpp"
#include "memory/resourceArea.hpp"
#include "runtime/handles.inline.hpp"
#include "runtime/jniHandles.hpp"

CompileTask* CompileTask::_task_free_list = NULL;

Expand Down
1 change: 1 addition & 0 deletions src/hotspot/share/gc/shared/concurrentGCThread.cpp
Expand Up @@ -26,6 +26,7 @@
#include "gc/shared/concurrentGCThread.hpp"
#include "runtime/atomic.hpp"
#include "runtime/init.hpp"
#include "runtime/jniHandles.hpp"
#include "runtime/mutexLocker.hpp"
#include "runtime/os.hpp"

Expand Down
1 change: 0 additions & 1 deletion src/hotspot/share/gc/shared/gcVMOperations.hpp
Expand Up @@ -31,7 +31,6 @@
#include "memory/metaspace.hpp"
#include "prims/jvmtiExport.hpp"
#include "runtime/handles.hpp"
#include "runtime/jniHandles.hpp"
#include "runtime/synchronizer.hpp"
#include "runtime/vmOperations.hpp"

Expand Down
1 change: 1 addition & 0 deletions src/hotspot/share/gc/shenandoah/shenandoahRootVerifier.cpp
Expand Up @@ -36,6 +36,7 @@
#include "gc/shenandoah/shenandoahUtils.hpp"
#include "gc/shared/oopStorage.inline.hpp"
#include "gc/shared/oopStorageSet.hpp"
#include "runtime/jniHandles.hpp"
#include "runtime/thread.hpp"
#include "utilities/debug.hpp"
#include "utilities/enumIterator.hpp"
Expand Down
1 change: 1 addition & 0 deletions src/hotspot/share/jfr/dcmd/jfrDcmds.cpp
Expand Up @@ -34,6 +34,7 @@
#include "oops/oop.inline.hpp"
#include "oops/symbol.hpp"
#include "runtime/handles.inline.hpp"
#include "runtime/jniHandles.hpp"
#include "services/diagnosticArgument.hpp"
#include "services/diagnosticFramework.hpp"
#include "utilities/globalDefinitions.hpp"
Expand Down
Expand Up @@ -51,6 +51,7 @@
#include "oops/method.hpp"
#include "prims/jvmtiRedefineClasses.hpp"
#include "runtime/handles.inline.hpp"
#include "runtime/jniHandles.hpp"
#include "runtime/os.hpp"
#include "runtime/thread.inline.hpp"
#include "utilities/exceptions.hpp"
Expand Down
Expand Up @@ -38,6 +38,7 @@
#include "oops/oop.hpp"
#include "prims/jvmtiThreadState.hpp"
#include "runtime/frame.inline.hpp"
#include "runtime/jniHandles.hpp"
#include "runtime/mutexLocker.hpp"
#include "runtime/vframe_hp.hpp"
#include "services/management.hpp"
Expand Down
1 change: 1 addition & 0 deletions src/hotspot/share/jfr/writers/jfrWriterHost.inline.hpp
Expand Up @@ -34,6 +34,7 @@
#include "oops/oop.hpp"
#include "oops/symbol.hpp"
#include "oops/typeArrayOop.inline.hpp"
#include "runtime/jniHandles.hpp"

inline bool compressed_integers() {
static const bool comp_integers = JfrOptionSet::compressed_integers();
Expand Down
1 change: 1 addition & 0 deletions src/hotspot/share/jvmci/jvmciEnv.hpp
Expand Up @@ -27,6 +27,7 @@

#include "classfile/javaClasses.hpp"
#include "jvmci/jvmciJavaClasses.hpp"
#include "runtime/jniHandles.hpp"
#include "runtime/thread.hpp"

class CompileTask;
Expand Down
1 change: 0 additions & 1 deletion src/hotspot/share/jvmci/jvmciJavaClasses.hpp
Expand Up @@ -27,7 +27,6 @@
#include "classfile/vmSymbols.hpp"
#include "jvmci/jvmciExceptions.hpp"
#include "jvmci/jvmciObject.hpp"
#include "runtime/jniHandles.hpp"

/*
* This macro defines the structure of the JVMCI classes accessed from VM code. It is used to
Expand Down
1 change: 1 addition & 0 deletions src/hotspot/share/memory/universe.cpp
Expand Up @@ -65,6 +65,7 @@
#include "runtime/handles.inline.hpp"
#include "runtime/init.hpp"
#include "runtime/java.hpp"
#include "runtime/jniHandles.hpp"
#include "runtime/thread.inline.hpp"
#include "runtime/timerTrace.hpp"
#include "services/memoryService.hpp"
Expand Down
1 change: 1 addition & 0 deletions src/hotspot/share/prims/jvmtiEnter.xsl
Expand Up @@ -47,6 +47,7 @@
# include "prims/jvmtiRawMonitor.hpp"
# include "prims/jvmtiUtil.hpp"
# include "runtime/fieldDescriptor.inline.hpp"
# include "runtime/jniHandles.hpp"
# include "runtime/threadSMR.hpp"

</xsl:text>
Expand Down
1 change: 1 addition & 0 deletions src/hotspot/share/prims/jvmtiImpl.cpp
Expand Up @@ -46,6 +46,7 @@
#include "runtime/handles.inline.hpp"
#include "runtime/interfaceSupport.inline.hpp"
#include "runtime/javaCalls.hpp"
#include "runtime/jniHandles.hpp"
#include "runtime/os.hpp"
#include "runtime/serviceThread.hpp"
#include "runtime/signature.hpp"
Expand Down
1 change: 1 addition & 0 deletions src/hotspot/share/runtime/os.cpp
Expand Up @@ -51,6 +51,7 @@
#include "runtime/interfaceSupport.inline.hpp"
#include "runtime/java.hpp"
#include "runtime/javaCalls.hpp"
#include "runtime/jniHandles.hpp"
#include "runtime/mutexLocker.hpp"
#include "runtime/os.inline.hpp"
#include "runtime/osThread.hpp"
Expand Down
2 changes: 1 addition & 1 deletion src/hotspot/share/runtime/thread.hpp
Expand Up @@ -35,7 +35,6 @@
#include "runtime/globals.hpp"
#include "runtime/handshake.hpp"
#include "runtime/javaFrameAnchor.hpp"
#include "runtime/jniHandles.hpp"
#include "runtime/mutexLocker.hpp"
#include "runtime/os.hpp"
#include "runtime/park.hpp"
Expand All @@ -60,6 +59,7 @@ class ThreadSafepointState;
class ThreadsList;
class ThreadsSMRSupport;

class JNIHandleBlock;
class JvmtiRawMonitor;
class JvmtiSampledObjectAllocEventCollector;
class JvmtiThreadState;
Expand Down
1 change: 1 addition & 0 deletions src/hotspot/share/runtime/vmOperations.cpp
Expand Up @@ -41,6 +41,7 @@
#include "runtime/deoptimization.hpp"
#include "runtime/frame.inline.hpp"
#include "runtime/interfaceSupport.inline.hpp"
#include "runtime/jniHandles.hpp"
#include "runtime/synchronizer.hpp"
#include "runtime/thread.inline.hpp"
#include "runtime/threadSMR.inline.hpp"
Expand Down
1 change: 1 addition & 0 deletions src/hotspot/share/runtime/vmStructs.cpp
Expand Up @@ -89,6 +89,7 @@
#include "runtime/globals.hpp"
#include "runtime/java.hpp"
#include "runtime/javaCalls.hpp"
#include "runtime/jniHandles.hpp"
#include "runtime/monitorDeflationThread.hpp"
#include "runtime/notificationThread.hpp"
#include "runtime/os.hpp"
Expand Down
1 change: 1 addition & 0 deletions src/hotspot/share/runtime/vmThread.cpp
Expand Up @@ -36,6 +36,7 @@
#include "runtime/atomic.hpp"
#include "runtime/handles.inline.hpp"
#include "runtime/interfaceSupport.inline.hpp"
#include "runtime/jniHandles.hpp"
#include "runtime/mutexLocker.hpp"
#include "runtime/os.hpp"
#include "runtime/perfData.hpp"
Expand Down
1 change: 1 addition & 0 deletions src/hotspot/share/services/diagnosticCommand.cpp
Expand Up @@ -42,6 +42,7 @@
#include "runtime/handles.inline.hpp"
#include "runtime/interfaceSupport.inline.hpp"
#include "runtime/javaCalls.hpp"
#include "runtime/jniHandles.hpp"
#include "runtime/os.hpp"
#include "runtime/vm_version.hpp"
#include "services/diagnosticArgument.hpp"
Expand Down
1 change: 0 additions & 1 deletion src/hotspot/share/services/threadService.hpp
Expand Up @@ -30,7 +30,6 @@
#include "classfile/javaThreadStatus.hpp"
#include "runtime/handles.hpp"
#include "runtime/init.hpp"
#include "runtime/jniHandles.hpp"
#include "runtime/objectMonitor.hpp"
#include "runtime/perfData.hpp"
#include "runtime/safepoint.hpp"
Expand Down

0 comments on commit e7f2d09

Please sign in to comment.