RFR: 8370438: Offer link time optimization support on library level [v10]
Erik Joelsson
erikj at openjdk.org
Mon Nov 17 19:04:35 UTC 2025
On Wed, 12 Nov 2025 08:59:52 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:
>>>I think there was the concern raised previously, that without setting it for at least one lib, nobody would use/try it and the feature would 'rot' .
>>
>> I see, I'll run the tests for this lib then.
>
>> I see, I'll run the tests for this lib then.
>
> Great, thanks ! Please tell if it works for you and what are the size reductions you get for the lib (mostly for gcc).
> Also please tell about your opinion on the configure option to enable/disable the whole 'lto on jdk native libs' .
I don't think we need to disable this on a global level. For hotspot it was done because it only ever worked in specific jvm configurations. We can revisit that if we discover problems with specific toolchain versions.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/27976#discussion_r2535204191
More information about the client-libs-dev
mailing list