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

Sergey Bylokhov serb at openjdk.org
Wed Nov 19 22:14:27 UTC 2025


On Fri, 7 Nov 2025 15:06:51 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:

>> We currently have support for LTO (link time optimization) for Hotspot/libjvm, that can be enabled as a JVM feature.
>> But for other JDK native libs, we do not have support for this feature.
>> LTO and sometimes lead to faster and also in some cases smaller binaries, so support for this might be interesting also for other libs and not only libjvm.
>
> Matthias Baesken has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Add lto to EXTRA_FLAGS, not to OPT

@azvegint please verify this patch by the mach5.

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

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


More information about the client-libs-dev mailing list