On Tue, 25 Feb 2025 13:09:08 GMT, Matthias Baesken <mbaes...@openjdk.org> wrote:
> > I'm not sure what that line in Flags.gmk has to do with LTO support, since > > it's setting the optimization levels. > > We could offer there another option LTO, additionally to LOW, HIGH, HIGHEST, > SIZE etc. . > > > I don't think we should do it piece by piece like this, as Kim mentioned. > > I am not sure if it is currently a good idea to set LTO for all JDK native > libs; but for some it might work well and be beneficial. Maybe I can prepare a changeset for this and send the diff just to get a cursory review on the changes, and see where to go from there. In my fork I have an --enable-linktime-opt option that enables LTO, so it would be an opt in change, and not an immediate change to the default linking behaviour, which I think is a no go as you mentioned ------------- PR Comment: https://git.openjdk.org/jdk/pull/23563#issuecomment-2681943267