RFR: 8370438: Offer link time optimization support on library level

Julian Waters jwaters at openjdk.org
Tue Nov 4 09:31:48 UTC 2025


On Tue, 4 Nov 2025 09:20:29 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:

> > > When introducing new compiler flags, you need to do one of:
> > 
> > 
> > Just an idea to think about: would it be possible to share the same variable between the JDK and HotSpot to store these parameters? Even in this discussion, it would highlight that these parameters are not new. Or is it not worth the effort?
> 
> For the HS build, we set them directly in the makefile and not in the configure m4 files, see
> 
> https://github.com/openjdk/jdk/blob/e4aed95cac343f1339b9bc87721561bdc4c2f5ad/make/hotspot/lib/JvmFeatures.gmk#L179
> 
> 
> Might indeed make sense to refactor this.

It would be a little awkward to refactor only the JVM LTO flags into configure flags while leaving the rest of the JVM feature flags set by the Makefile, just my 2 cents.

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

PR Comment: https://git.openjdk.org/jdk/pull/27976#issuecomment-3484869603


More information about the build-dev mailing list