jmx-dev RFR: JDK-8348574 : Simplify c1/c2_globals inclusions
Kim Barrett
kbarrett at openjdk.org
Fri Jun 13 06:29:28 UTC 2025
On Thu, 12 Jun 2025 08:32:56 GMT, Suchismith Roy <sroy at openjdk.org> wrote:
> JBS Issue : [JDK-8348574](https://bugs.openjdk.org/browse/JDK-8348574)
>
> c1_globals.hpp includes c1_globals_pd.hpp. c1_globals_pd.hpp includes the corresponding CPU_HEADER and OS_HEADER files. All of the c1_globals_<os>.hpp files are essentially identical and basically empty. (They just include globalDefinitions.hpp and macros.hpp, and provide nothing additional.)
>
> This could be simplified by having c1_globals.hpp do the CPU_HEADER inclusion directly, and remove c1_globals_pd.hpp and all c1_globals_<os>.hpp files.
>
> Even if there are some non-vacuous c1_globals_<os>.hpp files in the future, c1_globals_pd.hpp seems unwarranted; just add the OS_HEADER include directly in c1_globals.hpp. The c1_globals_pd.hpp files really don't seem worth the extra indirection.
>
> Similarly for c2_globals.hpp &etc.
Looks good.
-------------
Marked as reviewed by kbarrett (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/25773#pullrequestreview-2923554527
More information about the jmx-dev
mailing list