RFR: 8370438: Offer link time optimization support on library level [v10]

Matthias Baesken mbaesken at openjdk.org
Mon Nov 24 08:30:07 UTC 2025


On Sun, 23 Nov 2025 22:53:45 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:

> here is my finding, no issues were found by the tests:
> 
> Platform / Compiler	Before	After	Win (number)	Win (%)
> Windows, VS 2022	204 800	206 848	−2 048	−1.00%
> macOS, Xcode 14.3.1	335 664	219 568	116 096	34.57%
> macOS, Xcode 26	391 168	237 360	153 808	39.32%
> gcc 13.3.0	307 936	219 344	88 592	28.77%
> gcc 11.4.0	303 944	174 168	129 776	42.70%
> gcc 11.5.0	295 280	177 360	117 920	39.93%

Thanks for testing, the results look pretty good !

In case some older toolchain has issues with the lto , we could disable it for this toolchain for
`BUILD_LIBSPLASHSCREEN`
in a follow up; but so far no such toolchain has been observed.

So can I go ahead with the integrate ?
Or should we wait for some other OpenJDK vendor to test the PR ?

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

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


More information about the build-dev mailing list