Skip to content

Commit cc52358

Browse files
author
Daniel D. Daugherty
committedOct 10, 2020
8254335: logging/logStream.hpp includes memory/resourceArea.hpp but doesn't need it
Reviewed-by: kbarrett, iklam
1 parent 4b5ac3a commit cc52358

11 files changed

+15
-6
lines changed
 

‎src/hotspot/share/gc/g1/g1FullGCScope.hpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2017, 2019, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2017, 2020, 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
@@ -34,6 +34,7 @@
3434
#include "gc/shared/gcVMOperations.hpp"
3535
#include "gc/shared/isGCActiveMark.hpp"
3636
#include "memory/allocation.hpp"
37+
#include "memory/resourceArea.hpp"
3738
#include "services/memoryService.hpp"
3839

3940
class GCMemoryManager;

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2017, 2020, 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
@@ -30,6 +30,7 @@
3030
#include "logging/log.hpp"
3131
#include "logging/logStream.hpp"
3232
#include "memory/allocation.inline.hpp"
33+
#include "memory/resourceArea.hpp"
3334
#include "runtime/atomic.hpp"
3435

3536
#define ASSERT_REF_TYPE(ref_type) assert((ref_type) >= REF_SOFT && (ref_type) <= REF_PHANTOM, \

‎src/hotspot/share/interpreter/bootstrapInfo.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
#include "logging/log.hpp"
3232
#include "logging/logStream.hpp"
3333
#include "memory/oopFactory.hpp"
34+
#include "memory/resourceArea.hpp"
3435
#include "oops/cpCache.inline.hpp"
3536
#include "oops/objArrayOop.inline.hpp"
3637
#include "oops/typeArrayOop.inline.hpp"

‎src/hotspot/share/logging/logStream.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2016, 2020, 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 "logging/log.hpp"
2727
#include "logging/logStream.hpp"
28+
#include "utilities/align.hpp"
2829

2930
LogStream::LineBuffer::LineBuffer()
3031
: _buf(_smallbuf), _cap(sizeof(_smallbuf)), _pos(0)

‎src/hotspot/share/logging/logStream.hpp

-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727

2828
#include "logging/log.hpp"
2929
#include "logging/logHandle.hpp"
30-
#include "memory/resourceArea.hpp"
3130
#include "utilities/ostream.hpp"
3231

3332

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

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
#include "memory/metaspace/virtualSpaceList.hpp"
3939
#include "memory/metaspaceShared.hpp"
4040
#include "memory/metaspaceTracer.hpp"
41+
#include "memory/resourceArea.hpp"
4142
#include "memory/universe.hpp"
4243
#include "oops/compressedOops.hpp"
4344
#include "runtime/arguments.hpp"

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

+1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
#include "memory/metaspace/metaspaceCommon.hpp"
3232
#include "memory/metaspace/spaceManager.hpp"
3333
#include "memory/metaspace/virtualSpaceList.hpp"
34+
#include "memory/resourceArea.hpp"
3435
#include "runtime/atomic.hpp"
3536
#include "runtime/init.hpp"
3637
#include "services/memoryService.hpp"

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2018, 2020, 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
@@ -32,6 +32,7 @@
3232
#include "memory/metaspace/metaspaceCommon.hpp"
3333
#include "memory/metaspace/virtualSpaceList.hpp"
3434
#include "memory/metaspace/virtualSpaceNode.hpp"
35+
#include "memory/resourceArea.hpp"
3536
#include "runtime/atomic.hpp"
3637
#include "runtime/orderAccess.hpp"
3738
#include "runtime/mutexLocker.hpp"

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

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
#include "logging/log.hpp"
2828
#include "logging/logStream.hpp"
2929
#include "memory/memRegion.hpp"
30+
#include "memory/resourceArea.hpp"
3031
#include "memory/universe.hpp"
3132
#include "oops/compressedOops.hpp"
3233
#include "gc/shared/collectedHeap.hpp"

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

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
#include "logging/log.hpp"
2828
#include "logging/logStream.hpp"
2929
#include "memory/allocation.inline.hpp"
30+
#include "memory/resourceArea.hpp"
3031
#include "oops/constantPool.hpp"
3132
#include "oops/generateOopMap.hpp"
3233
#include "oops/oop.inline.hpp"

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1998, 2019, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1998, 2020, 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 "logging/log.hpp"
2727
#include "logging/logStream.hpp"
28+
#include "memory/resourceArea.hpp"
2829
#include "runtime/vm_version.hpp"
2930

3031
void VM_Version_init() {

0 commit comments

Comments
 (0)
Please sign in to comment.