8366660: Sort share/nmt includes

Reviewed-by: ayang, shade
This commit is contained in:
Francesco Andreuzzi 2025-09-03 06:45:02 +00:00 committed by Aleksey Shipilev
parent 8c4090c2cf
commit 7c70e73414
15 changed files with 20 additions and 17 deletions

View File

@ -26,6 +26,7 @@
#define SHARE_NMT_ARRAYWITHFREELIST_HPP
#include "utilities/growableArray.hpp"
#include <type_traits>
// A flat array of elements E, backed by C-heap, growing on-demand. It allows for

View File

@ -26,11 +26,11 @@
#include "nmt/mallocLimit.hpp"
#include "nmt/memTag.hpp"
#include "nmt/nmtCommon.hpp"
#include "runtime/java.hpp"
#include "runtime/globals.hpp"
#include "runtime/java.hpp"
#include "utilities/globalDefinitions.hpp"
#include "utilities/parseInteger.hpp"
#include "utilities/ostream.hpp"
#include "utilities/parseInteger.hpp"
MallocLimitSet MallocLimitHandler::_limits;
bool MallocLimitHandler::_have_limit = false;

View File

@ -40,10 +40,10 @@
#include "runtime/os.hpp"
#include "runtime/safefetch.hpp"
#include "utilities/debug.hpp"
#include "utilities/globalDefinitions.hpp"
#include "utilities/macros.hpp"
#include "utilities/ostream.hpp"
#include "utilities/vmError.hpp"
#include "utilities/globalDefinitions.hpp"
MallocMemorySnapshot MallocMemorySummary::_snapshot;

View File

@ -26,8 +26,9 @@
#ifndef SHARE_NMT_MALLOCTRACKER_INLINE_HPP
#define SHARE_NMT_MALLOCTRACKER_INLINE_HPP
#include "nmt/mallocLimit.hpp"
#include "nmt/mallocTracker.hpp"
#include "nmt/mallocLimit.hpp"
#include "utilities/debug.hpp"
#include "utilities/globalDefinitions.hpp"

View File

@ -28,11 +28,11 @@
#include "gc/shared/collectedHeap.hpp"
#include "logging/logAsyncWriter.hpp"
#include "memory/allocation.hpp"
#include "memory/universe.hpp"
#include "memory/resourceArea.hpp"
#include "memory/universe.hpp"
#include "nmt/memMapPrinter.hpp"
#include "nmt/memTag.hpp"
#include "nmt/memTagBitmap.hpp"
#include "nmt/memMapPrinter.hpp"
#include "nmt/memTracker.hpp"
#include "nmt/virtualMemoryTracker.hpp"
#include "runtime/nonJavaThread.hpp"

View File

@ -26,11 +26,10 @@
#include "memory/metaspace.hpp"
#include "memory/metaspaceUtils.hpp"
#include "nmt/mallocTracker.hpp"
#include "nmt/memTag.hpp"
#include "nmt/memReporter.hpp"
#include "nmt/memTracker.hpp"
#include "nmt/memoryFileTracker.hpp"
#include "nmt/regionsTree.hpp"
#include "nmt/memReporter.hpp"
#include "nmt/memTag.hpp"
#include "nmt/memTracker.hpp"
#include "nmt/regionsTree.inline.hpp"
#include "nmt/threadStackTracker.hpp"
#include "nmt/virtualMemoryTracker.hpp"

View File

@ -28,8 +28,8 @@
#include "memory/reservedSpace.hpp"
#include "nmt/mallocTracker.hpp"
#include "nmt/memBaseline.hpp"
#include "nmt/nmtCommon.hpp"
#include "nmt/memoryFileTracker.hpp"
#include "nmt/nmtCommon.hpp"
#include "nmt/threadStackTracker.hpp"
#include "nmt/virtualMemoryTracker.hpp"
#include "runtime/mutexLocker.hpp"

View File

@ -23,8 +23,8 @@
*/
#include "memory/allocation.hpp"
#include "nmt/memTracker.hpp"
#include "nmt/memoryFileTracker.hpp"
#include "nmt/memTracker.hpp"
#include "nmt/nmtCommon.hpp"
#include "nmt/nmtNativeCallStackStorage.hpp"
#include "nmt/vmatree.hpp"

View File

@ -28,8 +28,8 @@
#include "memory/allocation.hpp"
#include "nmt/nmtCommon.hpp"
#include "nmt/nmtNativeCallStackStorage.hpp"
#include "nmt/vmatree.hpp"
#include "nmt/virtualMemoryTracker.hpp"
#include "nmt/vmatree.hpp"
#include "runtime/os.inline.hpp"
#include "utilities/deferredStatic.hpp"
#include "utilities/growableArray.hpp"

View File

@ -28,6 +28,7 @@
#include "nmt/arrayWithFreeList.hpp"
#include "utilities/growableArray.hpp"
#include "utilities/nativeCallStack.hpp"
#include <limits>
// Virtual memory regions that are tracked by NMT also have their NativeCallStack (NCS) tracked.

View File

@ -25,6 +25,7 @@
#define SHARE_NMT_REGIONSTREE_INLINE_HPP
#include "nmt/regionsTree.hpp"
#include "nmt/virtualMemoryTracker.hpp"
template<typename F>

View File

@ -24,9 +24,8 @@
#include "logging/log.hpp"
#include "nmt/memTracker.hpp"
#include "nmt/virtualMemoryTracker.hpp"
#include "nmt/regionsTree.hpp"
#include "nmt/regionsTree.inline.hpp"
#include "nmt/virtualMemoryTracker.hpp"
#include "runtime/os.hpp"
#include "utilities/ostream.hpp"

View File

@ -26,8 +26,8 @@
#define SHARE_NMT_VIRTUALMEMORYTRACKER_HPP
#include "nmt/allocationSite.hpp"
#include "nmt/vmatree.hpp"
#include "nmt/regionsTree.hpp"
#include "nmt/vmatree.hpp"
#include "runtime/atomic.hpp"
#include "utilities/nativeCallStack.hpp"
#include "utilities/ostream.hpp"

View File

@ -26,12 +26,12 @@
#ifndef SHARE_NMT_VMATREE_HPP
#define SHARE_NMT_VMATREE_HPP
#include "nmt/memTag.hpp"
#include "nmt/memTag.hpp"
#include "nmt/nmtNativeCallStackStorage.hpp"
#include "utilities/globalDefinitions.hpp"
#include "utilities/ostream.hpp"
#include "utilities/rbTree.inline.hpp"
#include <cstdint>
// A VMATree stores a sequence of points on the natural number line.

View File

@ -57,6 +57,7 @@ public class TestIncludesAreSorted {
"share/logging",
"share/memory",
"share/metaprogramming",
"share/nmt",
"share/oops",
"share/opto",
"share/precompiled",