JDK-8258459 : Decouple gc_globals.hpp from globals.hpp
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: gc
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2020-12-16
  • Updated: 2024-02-06
  • Resolved: 2021-01-05
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 17
17 b04Fixed
Related Reports
Relates :  
Relates :  
Description
Currently, globals.hpp is including gc_globals.hpp. This exposes all the GC command-line flags to almost all cpp files. However, only about 1/3 of the cpp files would require gc_globals.hpp.

https://github.com/openjdk/jdk/blob/17ace8339dd8235f3811e3975d9ccc77910b0c77/src/hotspot/share/runtime/globals.hpp#L29

This RFE improves modularity and improves HotSpot build time.
Comments
Changeset: 5ea96072 Author: Ioi Lam <iklam@openjdk.org> Date: 2021-01-05 05:57:08 +0000 URL: https://git.openjdk.java.net/jdk/commit/5ea96072
05-01-2021