RFR: 8349638: Build libjdwp with SIZE optimization
Chris Plummer
cjplummer at openjdk.org
Wed Apr 9 20:37:33 UTC 2025
On Wed, 9 Apr 2025 10:41:34 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:
> Wait, `LOW` is `-O2`? 👀 I thought it was like no optimization at all. I'm sooo confused with these levels. So maybe going from `LOW` to `SIZE` will actually lose more optimization than I thought. _sigh_
-Os is the same as -O2 minus some optimizations that increase footprint.
https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html
-O3 mostly adds more serious footprint increasing optimizations like loop unrolling. I've seen a number of warnings that suggest in some cases the larger code can reduce performance, so you may be best off with -O2 or -Os for best performance.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/23563#issuecomment-2790938638
More information about the serviceability-dev
mailing list