Integrated: 8243205: Modularize JVM flags declaration

Ioi Lam iklam at openjdk.java.net
Fri Dec 11 04:21:55 UTC 2020


On Thu, 3 Dec 2020 21:51:42 GMT, Ioi Lam <iklam at openjdk.org> wrote:

> This is the first step for modularizing the xxx_globals.hpp. The goals are
> 
> - Improve modularization of HotSpot source
> - Reduce JVM build time
> 
> To prove that this works,  I have moved compiler_globals.hpp outside of the monolithic globals.hpp. Before this fix, compiler_globals.hpp was included by 922 HotSpot .o files. After this fix, it's included by 283 .o files.
> 
> I plan to do more refactoring later, such as:
> 
> - move gc_globals.hpp out of globals.hpp
> - move the flags related to tiered compilation (about 40 flags) out of globals.hpp
> - move the platform-specific flags outside of globals.hpp
>   - these flags should be used only by platform-specific files. They shouldn't be used by shared files.
> 
> Note: this is target for JDK 17.
> 
> Testing: I've tested tier1, builds-tier2, builds-tier3, builds-tier4 and builds-tier5 on mach5, plus locally building arm, aarch64, s390, ppc64, and zero.

This pull request has now been integrated.

Changeset: 1d15ebe1
Author:    Ioi Lam <iklam at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/1d15ebe1
Stats:     494 lines in 27 files changed: 303 ins; 158 del; 33 mod

8243205: Modularize JVM flags declaration

Reviewed-by: kvn, coleenp, stefank

-------------

PR: https://git.openjdk.java.net/jdk/pull/1608


More information about the hotspot-dev mailing list