RFR: 8349638: Build libjdwp with SIZE optimization
Matthias Baesken
mbaesken at openjdk.org
Wed Feb 12 09:02:15 UTC 2025
On Tue, 11 Feb 2025 15:56:39 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:
> The libjdwp is currently built with LOW optimization level, it could be built with SIZE optimization to lower the lib size by ~ 10 % on UNIX. On Windows LOW and SIZE currently translate to the same O1 optimization flag so no difference there.
>
> On Linux x86_64 for example the lib shrinks from 300K to 268K and the debuginfo file shrinks from 1.9M to 1.7M .
>
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
-------------
PR Comment: https://git.openjdk.org/jdk/pull/23563#issuecomment-2653045377
More information about the build-dev
mailing list