Skip to content

Commit e307b5c

Browse files
fandreuzDavid Holmes
authored andcommitted
8363584: Sort share/utilities includes
Reviewed-by: kbarrett, dholmes, shade
1 parent 4189fcb commit e307b5c

24 files changed

+50
-46
lines changed

src/hotspot/share/utilities/align.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
#include "utilities/debug.hpp"
3131
#include "utilities/globalDefinitions.hpp"
3232
#include "utilities/powerOfTwo.hpp"
33+
3334
#include <type_traits>
3435

3536
// Compute mask to use for aligning to or testing alignment.

src/hotspot/share/utilities/concurrentHashTableTasks.inline.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
// No concurrentHashTableTasks.hpp
2929

3030
#include "runtime/atomic.hpp"
31-
#include "utilities/globalDefinitions.hpp"
3231
#include "utilities/concurrentHashTable.inline.hpp"
32+
#include "utilities/globalDefinitions.hpp"
3333

3434
// This inline file contains BulkDeleteTask and GrowTasks which are both bucket
3535
// operations, which they are serialized with each other.

src/hotspot/share/utilities/copy.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
*
2323
*/
2424

25-
#include "utilities/copy.hpp"
2625
#include "runtime/sharedRuntime.hpp"
2726
#include "utilities/align.hpp"
2827
#include "utilities/byteswap.hpp"

src/hotspot/share/utilities/debug.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@
6363
#include "utilities/unsigned5.hpp"
6464
#include "utilities/vmError.hpp"
6565

66-
#include <stdio.h>
6766
#include <stdarg.h>
67+
#include <stdio.h>
6868

6969
// These functions needs to be exported on Windows only
7070
#define DEBUGEXPORT WINDOWS_ONLY(JNIEXPORT)

src/hotspot/share/utilities/elfFile.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@
3636
#include "utilities/elfSymbolTable.hpp"
3737
#include "utilities/ostream.hpp"
3838

39-
#include <string.h>
40-
#include <stdio.h>
4139
#include <limits.h>
4240
#include <new>
41+
#include <stdio.h>
42+
#include <string.h>
4343

4444
const char* ElfFile::USR_LIB_DEBUG_DIRECTORY = "/usr/lib/debug";
4545

src/hotspot/share/utilities/elfFile.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ typedef Elf32_Sym Elf_Sym;
6767
#endif
6868
#endif
6969

70-
#include "jvm_md.h"
7170
#include "globalDefinitions.hpp"
71+
#include "jvm_md.h"
7272
#include "memory/allocation.hpp"
7373
#include "utilities/checkedCast.hpp"
7474
#include "utilities/decoder.hpp"

src/hotspot/share/utilities/exceptions.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@
3232
#include "memory/resourceArea.hpp"
3333
#include "memory/universe.hpp"
3434
#include "oops/oop.inline.hpp"
35+
#include "runtime/atomic.hpp"
3536
#include "runtime/handles.inline.hpp"
3637
#include "runtime/init.hpp"
3738
#include "runtime/java.hpp"
3839
#include "runtime/javaCalls.hpp"
3940
#include "runtime/javaThread.hpp"
4041
#include "runtime/os.hpp"
41-
#include "runtime/atomic.hpp"
4242
#include "utilities/events.hpp"
4343
#include "utilities/exceptions.hpp"
4444
#include "utilities/utf8.hpp"

src/hotspot/share/utilities/fakeRttiSupport.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
#ifndef SHARE_UTILITIES_FAKERTTISUPPORT_HPP
2626
#define SHARE_UTILITIES_FAKERTTISUPPORT_HPP
2727

28-
#include "utilities/globalDefinitions.hpp"
2928
#include "utilities/debug.hpp"
29+
#include "utilities/globalDefinitions.hpp"
3030

3131
// Provides support for checked downcasts in a hierarchy of classes.
3232
// The base class provides a member of this type, specialized on that

src/hotspot/share/utilities/globalDefinitions.hpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,13 @@
2525
#ifndef SHARE_UTILITIES_GLOBALDEFINITIONS_HPP
2626
#define SHARE_UTILITIES_GLOBALDEFINITIONS_HPP
2727

28+
// Get constants like JVM_T_CHAR and JVM_SIGNATURE_INT, before pulling in <jvm.h>.
29+
#include "classfile_constants.h"
2830
#include "utilities/compilerWarnings.hpp"
2931
#include "utilities/debug.hpp"
3032
#include "utilities/forbiddenFunctions.hpp"
3133
#include "utilities/macros.hpp"
3234

33-
// Get constants like JVM_T_CHAR and JVM_SIGNATURE_INT, before pulling in <jvm.h>.
34-
#include "classfile_constants.h"
35-
3635
#include COMPILER_HEADER(utilities/globalDefinitions)
3736

3837
#include <cstddef>

src/hotspot/share/utilities/globalDefinitions_gcc.hpp

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,13 @@
3333

3434
#include <alloca.h>
3535
#include <ctype.h>
36+
#include <dlfcn.h>
37+
#include <errno.h>
38+
#include <fcntl.h>
3639
#include <inttypes.h>
37-
#include <string.h>
40+
#include <limits.h>
41+
#include <math.h>
42+
#include <pthread.h>
3843
#include <stdarg.h>
3944
#include <stddef.h>
4045
#include <stdint.h>
@@ -48,16 +53,9 @@
4853
#undef malloc
4954
extern void *malloc(size_t) asm("vec_malloc");
5055
#endif
51-
#include <wchar.h>
52-
53-
#include <math.h>
56+
#include <string.h>
5457
#include <time.h>
55-
#include <fcntl.h>
56-
#include <dlfcn.h>
57-
#include <pthread.h>
58-
59-
#include <limits.h>
60-
#include <errno.h>
58+
#include <wchar.h>
6159

6260
#if defined(LINUX) || defined(_ALLBSD_SOURCE) || defined(_AIX)
6361
#include <signal.h>

0 commit comments

Comments
 (0)