RFR: 8345265: Minor improvements for LTO across all compilers [v2]

Matthias Baesken mbaesken at openjdk.org
Fri Oct 24 13:04:31 UTC 2025


On Wed, 22 Oct 2025 14:06:54 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:

> > So should we still offer LTO for more libs as an option to enable for the lib, even with the mentioned issues?
> 
> Provide an option for library owners to opt-in, which can be enabled per-library, per-platform and per-compiler after appropriate testing for performance, functionality, and footprint. So it will be possible to mix size/perf and lto optimizations. Then later we can decide what to use by default.

I created a draft PR  https://github.com/openjdk/jdk/pull/27976  to support enabling LTO on library level.
(and for testing enabled it for 2 libs)

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

PR Comment: https://git.openjdk.org/jdk/pull/22464#issuecomment-3443050728


More information about the hotspot-dev mailing list