RFR: 8349638: Build libjdwp with SIZE optimization

Matthias Baesken mbaesken at openjdk.org
Tue Feb 25 09:17:00 UTC 2025


On Tue, 25 Feb 2025 02:31:29 GMT, Chris Plummer <cjplummer at openjdk.org> wrote:

> Absence of benchmarking and given the relatively small footprint savings, I don't think we should switch to SIZE. LTO seems fine.  I don't know of any negative impacts with using it.

@TheShermanTanker , @magicus  what do you think ? Should we additionally offer  LTO on library level ?
See
https://github.com/openjdk/jdk/blob/master/make/common/native/Flags.gmk#L43

Currently we only have it as an additional option for libjvm and not the other native libs .

>  I think you can optionally configure libjvm.so to be built for small size, not performance

Yes true for libjvm this is possible, it is the opt-size  part of the minimal features set
`JVM_FEATURES_minimal='compiler1 minimal opt-size serialgc'`

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

PR Comment: https://git.openjdk.org/jdk/pull/23563#issuecomment-2681231574
PR Comment: https://git.openjdk.org/jdk/pull/23563#issuecomment-2681239626


More information about the build-dev mailing list