Skip to content

Commit

Permalink
8229836: Remove include of globals.hpp from allocation.hpp
Browse files Browse the repository at this point in the history
Reviewed-by: coleenp, kbarrett
  • Loading branch information
stefank committed Aug 26, 2019
1 parent 05322fd commit e1aca70
Show file tree
Hide file tree
Showing 19 changed files with 20 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/hotspot/os/linux/gc/z/zNUMA_linux.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include "gc/z/zErrno.hpp"
#include "gc/z/zCPU.hpp"
#include "gc/z/zNUMA.hpp"
#include "runtime/globals.hpp"
#include "runtime/os.hpp"
#include "utilities/debug.hpp"

Expand Down
2 changes: 1 addition & 1 deletion src/hotspot/os/linux/osContainer_linux.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#include <errno.h>
#include "utilities/globalDefinitions.hpp"
#include "memory/allocation.hpp"
#include "runtime/globals.hpp"
#include "runtime/os.hpp"
#include "logging/log.hpp"
#include "osContainer_linux.hpp"
Expand Down Expand Up @@ -673,4 +674,3 @@ int OSContainer::cpu_shares() {

return shares;
}

Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
#include "gc/z/zPhysicalMemory.inline.hpp"
#include "gc/z/zPhysicalMemoryBacking_linux_x86.hpp"
#include "logging/log.hpp"
#include "runtime/globals.hpp"
#include "runtime/init.hpp"
#include "runtime/os.hpp"
#include "utilities/align.hpp"
Expand Down
1 change: 1 addition & 0 deletions src/hotspot/share/code/vmreg.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#define SHARE_CODE_VMREG_HPP

#include "asm/register.hpp"
#include "runtime/globals.hpp"
#include "utilities/globalDefinitions.hpp"
#include "utilities/macros.hpp"
#include "utilities/ostream.hpp"
Expand Down
1 change: 1 addition & 0 deletions src/hotspot/share/gc/cms/allocationStats.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@

#include "gc/shared/gcUtil.hpp"
#include "logging/log.hpp"
#include "runtime/globals.hpp"
#include "utilities/globalDefinitions.hpp"
#include "utilities/macros.hpp"

Expand Down
1 change: 1 addition & 0 deletions src/hotspot/share/gc/g1/g1Analytics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#include "precompiled.hpp"
#include "gc/g1/g1Analytics.hpp"
#include "gc/g1/g1Predictions.hpp"
#include "runtime/globals.hpp"
#include "runtime/os.hpp"
#include "utilities/debug.hpp"
#include "utilities/numberSeq.hpp"
Expand Down
1 change: 1 addition & 0 deletions src/hotspot/share/gc/shared/gcOverheadChecker.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@

#include "memory/allocation.hpp"
#include "gc/shared/gcCause.hpp"
#include "runtime/globals.hpp"

class SoftRefPolicy;

Expand Down
1 change: 1 addition & 0 deletions src/hotspot/share/gc/z/zValue.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
#include "gc/z/zNUMA.hpp"
#include "gc/z/zThread.hpp"
#include "gc/z/zUtils.hpp"
#include "runtime/globals.hpp"
#include "utilities/align.hpp"

template <typename S>
Expand Down
2 changes: 1 addition & 1 deletion src/hotspot/share/memory/allocation.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@
#ifndef SHARE_MEMORY_ALLOCATION_HPP
#define SHARE_MEMORY_ALLOCATION_HPP

#include "runtime/globals.hpp"
#include "utilities/globalDefinitions.hpp"
#include "utilities/macros.hpp"

#include <new>

class outputStream;
class Thread;

class AllocFailStrategy {
Expand Down
1 change: 1 addition & 0 deletions src/hotspot/share/memory/allocation.inline.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#define SHARE_MEMORY_ALLOCATION_INLINE_HPP

#include "runtime/atomic.hpp"
#include "runtime/globals.hpp"
#include "runtime/os.hpp"
#include "services/memTracker.hpp"
#include "utilities/align.hpp"
Expand Down
1 change: 1 addition & 0 deletions src/hotspot/share/memory/metaspace.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#include "memory/metaspaceChunkFreeListSummary.hpp"
#include "memory/virtualspace.hpp"
#include "memory/metaspace/metaspaceSizesSnapshot.hpp"
#include "runtime/globals.hpp"
#include "utilities/exceptions.hpp"

// Metaspace
Expand Down
1 change: 1 addition & 0 deletions src/hotspot/share/oops/accessBackend.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
#include "metaprogramming/isVolatile.hpp"
#include "oops/accessDecorators.hpp"
#include "oops/oopsHierarchy.hpp"
#include "runtime/globals.hpp"
#include "utilities/debug.hpp"
#include "utilities/globalDefinitions.hpp"

Expand Down
1 change: 1 addition & 0 deletions src/hotspot/share/oops/markWord.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
#include "metaprogramming/integralConstant.hpp"
#include "metaprogramming/primitiveConversions.hpp"
#include "oops/oopsHierarchy.hpp"
#include "runtime/globals.hpp"

// The markWord describes the header of an object.
//
Expand Down
2 changes: 1 addition & 1 deletion src/hotspot/share/oops/oopsHierarchy.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class Thread;
class PromotedObject;
class oopDesc;

extern bool CheckUnhandledOops;
extern "C" bool CheckUnhandledOops;

class oop {
oopDesc* _o;
Expand Down
1 change: 1 addition & 0 deletions src/hotspot/share/runtime/perfMemory.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#ifndef SHARE_RUNTIME_PERFMEMORY_HPP
#define SHARE_RUNTIME_PERFMEMORY_HPP

#include "runtime/globals.hpp"
#include "utilities/exceptions.hpp"

/*
Expand Down
1 change: 1 addition & 0 deletions src/hotspot/share/utilities/globalDefinitions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
*/

#include "precompiled.hpp"
#include "runtime/globals.hpp"
#include "runtime/os.hpp"
#include "utilities/globalDefinitions.hpp"

Expand Down
2 changes: 1 addition & 1 deletion src/hotspot/share/utilities/virtualizationSupport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
*/

#include "precompiled.hpp"
#include "runtime/globals.hpp"
#include "runtime/os.hpp"
#include "utilities/virtualizationSupport.hpp"

Expand Down Expand Up @@ -101,4 +102,3 @@ void VirtualizationSupport::print_virtualization_info(outputStream* st) {
}
}
}

2 changes: 2 additions & 0 deletions test/hotspot/gtest/runtime/test_os_linux.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@

#include <sys/mman.h>

#include "runtime/globals.hpp"
#include "runtime/os.hpp"
#include "utilities/align.hpp"
#include "unittest.hpp"

namespace {
Expand Down
1 change: 1 addition & 0 deletions test/hotspot/gtest/utilities/test_globalDefinitions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include "precompiled.hpp"
#include "runtime/os.hpp"
#include "unittest.hpp"
#include "utilities/align.hpp"
#include "utilities/globalDefinitions.hpp"

static ::testing::AssertionResult testPageAddress(
Expand Down

0 comments on commit e1aca70

Please sign in to comment.