On Thu, 12 Jun 2025 08:32:56 GMT, Suchismith Roy <s...@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. This pull request has now been integrated. Changeset: 79497ef7 Author: Suchismith Roy <s...@openjdk.org> Committer: Varada M <vara...@openjdk.org> URL: https://git.openjdk.org/jdk/commit/79497ef7f55ef445b31348ae9d3d6dff6d3b6a54 Stats: 366 lines in 13 files changed: 2 ins; 360 del; 4 mod 8348574: Simplify c1/c2_globals inclusions Reviewed-by: mhaessig, kbarrett ------------- PR: https://git.openjdk.org/jdk/pull/25773