8366778: Sort share/asm, share/gc, share/include includes

Reviewed-by: shade, ayang, jsikstro
This commit is contained in:
Francesco Andreuzzi 2025-09-04 07:13:41 +00:00 committed by Aleksey Shipilev
parent 222ae365c8
commit 1495dd94e9
15 changed files with 7 additions and 34 deletions

View File

@ -23,7 +23,6 @@
*/
#include "asm/codeBuffer.hpp"
#include "asm/macroAssembler.hpp"
#include "asm/macroAssembler.inline.hpp"
#include "gc/shared/collectedHeap.hpp"
#include "memory/universe.hpp"

View File

@ -33,8 +33,8 @@
#include "utilities/debug.hpp"
#include "utilities/growableArray.hpp"
#include "utilities/linkedlist.hpp"
#include "utilities/resizableHashTable.hpp"
#include "utilities/macros.hpp"
#include "utilities/resizableHashTable.hpp"
template <typename T>
static inline void put_native(address p, T x) {

View File

@ -26,6 +26,7 @@
#define SHARE_ASM_CODEBUFFER_INLINE_HPP
#include "asm/codeBuffer.hpp"
#include "ci/ciEnv.hpp"
#include "code/compiledIC.hpp"

View File

@ -30,7 +30,6 @@
#include "gc/shared/gcArguments.hpp"
#include "gc/shared/locationPrinter.inline.hpp"
#include "logging/log.hpp"
#include "memory/allocation.hpp"
#include "memory/allocation.inline.hpp"
#include "memory/metaspaceUtils.hpp"
#include "memory/resourceArea.hpp"

View File

@ -24,6 +24,7 @@
#ifndef SHARE_GC_G1_G1FULLGCRESETMETADATATASK_HPP
#define SHARE_GC_G1_G1FULLGCRESETMETADATATASK_HPP
#include "gc/g1/g1FullGCTask.hpp"
#include "gc/g1/g1HeapRegion.hpp"

View File

@ -67,7 +67,6 @@
#include "memory/resourceArea.hpp"
#include "memory/universe.hpp"
#include "oops/oop.inline.hpp"
#include "runtime/handles.hpp"
#include "runtime/handles.inline.hpp"
#include "runtime/java.hpp"
#include "runtime/mutexLocker.hpp"

View File

@ -27,7 +27,6 @@
#include "classfile/vmClasses.hpp"
#include "gc/shared/allocTracer.hpp"
#include "gc/shared/barrierSet.hpp"
#include "gc/shared/collectedHeap.hpp"
#include "gc/shared/collectedHeap.inline.hpp"
#include "gc/shared/gc_globals.hpp"
#include "gc/shared/gcHeapSummary.hpp"

View File

@ -24,7 +24,6 @@
#include "classfile/javaClasses.inline.hpp"
#include "compiler/compilerDefinitions.inline.hpp"
#include "gc/shared/collectedHeap.hpp"
#include "gc/shared/collectedHeap.inline.hpp"
#include "gc/shared/gc_globals.hpp"
#include "gc/shared/gcTimer.hpp"

View File

@ -29,8 +29,8 @@
#include "gc/shenandoah/shenandoahHeapRegionSet.inline.hpp"
#include "gc/shenandoah/shenandoahMarkingContext.inline.hpp"
#include "gc/shenandoah/shenandoahUtils.hpp"
#include "oops/oop.inline.hpp"
#include "memory/resourceArea.hpp"
#include "oops/oop.inline.hpp"
#include "runtime/os.hpp"
#include "utilities/vmError.hpp"

View File

@ -31,7 +31,6 @@
#include "gc/shenandoah/shenandoahHeapRegionSet.hpp"
#include "gc/shenandoah/shenandoahMarkingContext.inline.hpp"
#include "gc/shenandoah/shenandoahOldGeneration.hpp"
#include "gc/shenandoah/shenandoahSimpleBitMap.hpp"
#include "gc/shenandoah/shenandoahSimpleBitMap.inline.hpp"
#include "gc/shenandoah/shenandoahYoungGeneration.hpp"
#include "logging/logStream.hpp"

View File

@ -29,10 +29,10 @@
#include "classfile/systemDictionary.hpp"
#include "gc/shared/classUnloadingContext.hpp"
#include "gc/shared/fullGCForwarding.hpp"
#include "gc/shared/gc_globals.hpp"
#include "gc/shared/gcArguments.hpp"
#include "gc/shared/gcTimer.hpp"
#include "gc/shared/gcTraceTime.inline.hpp"
#include "gc/shared/gc_globals.hpp"
#include "gc/shared/locationPrinter.inline.hpp"
#include "gc/shared/memAllocator.hpp"
#include "gc/shared/plab.hpp"

View File

@ -30,7 +30,6 @@
#include "gc/shenandoah/shenandoahCollectorPolicy.hpp"
#include "gc/shenandoah/shenandoahFreeSet.hpp"
#include "gc/shenandoah/shenandoahGenerationalHeap.hpp"
#include "gc/shenandoah/shenandoahHeap.hpp"
#include "gc/shenandoah/shenandoahHeap.inline.hpp"
#include "gc/shenandoah/shenandoahHeapRegion.hpp"
#include "gc/shenandoah/shenandoahHeapRegionClosures.hpp"

View File

@ -27,7 +27,6 @@
#include "gc/z/zUncoloredRoot.hpp"
#include "gc/z/zAddress.inline.hpp"
#include "gc/z/zBarrier.hpp"
#include "gc/z/zBarrier.inline.hpp"
#include "gc/z/zHeap.inline.hpp"
#include "oops/oop.hpp"

View File

@ -28,8 +28,8 @@
#include <sys/stat.h>
#include "jni.h"
#include "jvm_md.h"
#include "jni.h"
#ifdef __cplusplus
extern "C" {

View File

@ -43,28 +43,7 @@ public class TestIncludesAreSorted {
* can be checked).
*/
private static final String[] HOTSPOT_SOURCES_TO_CHECK = {
"share/adlc",
"share/c1",
"share/cds",
"share/ci",
"share/classfile",
"share/code",
"share/compiler",
"share/interpreter",
"share/jfr",
"share/jvmci",
"share/libadt",
"share/logging",
"share/memory",
"share/metaprogramming",
"share/nmt",
"share/oops",
"share/opto",
"share/precompiled",
"share/prims",
"share/runtime",
"share/services",
"share/utilities"
"share"
};
/**