Skip to content

Commit aa26ced

Browse files
MaxXSoftstefank
authored andcommitted
8360474: Add missing include guards for some HotSpot headers
Reviewed-by: mhaessig, stefank, dholmes
1 parent 20e983a commit aa26ced

File tree

4 files changed

+20
-2
lines changed

4 files changed

+20
-2
lines changed

src/hotspot/os/aix/decoder_aix.hpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2011, 2023, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2011, 2025, Oracle and/or its affiliates. All rights reserved.
33
* Copyright (c) 2013 SAP SE. All rights reserved.
44
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
55
*
@@ -23,6 +23,9 @@
2323
*
2424
*/
2525

26+
#ifndef OS_AIX_DECODER_AIX_HPP
27+
#define OS_AIX_DECODER_AIX_HPP
28+
2629
#include "utilities/decoder.hpp"
2730
#include "porting_aix.hpp"
2831

@@ -44,3 +47,4 @@ class AIXDecoder: public AbstractDecoder {
4447

4548
};
4649

50+
#endif // OS_AIX_DECODER_AIX_HPP

src/hotspot/share/gc/g1/g1SharedClosures.hpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2015, 2024, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2015, 2025, 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
@@ -22,6 +22,9 @@
2222
*
2323
*/
2424

25+
#ifndef SHARE_GC_G1_G1SHAREDCLOSURES_HPP
26+
#define SHARE_GC_G1_G1SHAREDCLOSURES_HPP
27+
2528
#include "gc/g1/g1NMethodClosure.hpp"
2629
#include "gc/g1/g1OopClosures.hpp"
2730
#include "memory/iterator.hpp"
@@ -54,3 +57,5 @@ class G1SharedClosures {
5457
_clds(&_oops_in_cld, process_only_dirty),
5558
_nmethods(pss->worker_id(), &_oops_in_nmethod, should_mark) {}
5659
};
60+
61+
#endif // SHARE_GC_G1_G1SHAREDCLOSURES_HPP

src/hotspot/share/opto/library_call.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
*
2323
*/
2424

25+
#ifndef SHARE_OPTO_LIBRARY_CALL_HPP
26+
#define SHARE_OPTO_LIBRARY_CALL_HPP
27+
2528
#include "ci/ciMethod.hpp"
2629
#include "classfile/javaClasses.hpp"
2730
#include "opto/callGenerator.hpp"
@@ -416,3 +419,4 @@ class LibraryCallKit : public GraphKit {
416419
bool inline_blackhole();
417420
};
418421

422+
#endif // SHARE_OPTO_LIBRARY_CALL_HPP

src/hotspot/share/utilities/packedTable.hpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
*
2323
*/
2424

25+
#ifndef SHARE_UTILITIES_PACKEDTABLE_HPP
26+
#define SHARE_UTILITIES_PACKEDTABLE_HPP
27+
2528
#include "oops/array.hpp"
2629
#include "utilities/globalDefinitions.hpp"
2730

@@ -121,3 +124,5 @@ class PackedTableLookup: public PackedTableBase {
121124
}
122125
}
123126
};
127+
128+
#endif // SHARE_UTILITIES_PACKEDTABLE_HPP

0 commit comments

Comments
 (0)