RFR: 8349638: Build libjdwp with SIZE optimization
Chris Plummer
cjplummer at openjdk.org
Thu Feb 13 01:55:22 UTC 2025
On Wed, 12 Feb 2025 08:59:32 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:
> This is what I get with HIGH , on Linux x86_64 (gcc 11.3 used)
>
> du -sh images/jdk/lib/libjdwp.* 2.0M images/jdk/lib/libjdwp.debuginfo 316K images/jdk/lib/libjdwp.so
So it's about a 5% footprint increase to go from LOW to HIGH, and about a 10% footprint savings to go from LOW to SIZE. What specific gcc -O flag do each of these map to? I figure SIZE == -Os, HIGH == -O3. Not sure about LOW, but if it is -O1, then -Os will probably give a performance increase since it is -O2 minus some code bloat optimizations and plus some code size optimizations.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/23563#issuecomment-2655251215
More information about the build-dev
mailing list