-
Type:
Bug
-
Resolution: Won't Fix
-
Priority:
P4
-
Affects Version/s: 13
-
Component/s: hotspot
Instead of
-#ifndef SHARE_VM_OOPS_KLASS_HPP
-#define SHARE_VM_OOPS_KLASS_HPP
+#pragma once
...
-#endif // SHARE_VM_OOPS_KLASS_HPP
Since the repository consolidation, the #define names reflect the old directory structure and are wrong. Rather than fix these and continue with this error-prone method, use #pragma once, which all modern compilers support.
-#ifndef SHARE_VM_OOPS_KLASS_HPP
-#define SHARE_VM_OOPS_KLASS_HPP
+#pragma once
...
-#endif // SHARE_VM_OOPS_KLASS_HPP
Since the repository consolidation, the #define names reflect the old directory structure and are wrong. Rather than fix these and continue with this error-prone method, use #pragma once, which all modern compilers support.
- relates to
-
JDK-8216167 Update include guards to reflect correct directories
-
- Resolved
-