RFR: 8349638: Build libjdwp with SIZE optimization

Chris Plummer cjplummer at openjdk.org
Thu Feb 13 18:28:18 UTC 2025


On Thu, 13 Feb 2025 09:08:45 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:

> Btw what is also interesting is LTO optimization ; with gcc this has high optimization and for some libs quite large size reduction because at link time it can remove/rearrange quite a lot of code leading to smaller libs .
> But currently we have LTO support only for hotspot.

LTO support was added for minimal VM, which doesn't support JVMTI and therefore does not support the debug agent, so that's probably why support for it was never added to the debug agent. I thought it was added for some of the libs though, like libjava.so, but I could be wrong.

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

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


More information about the build-dev mailing list