On Thu, 13 Feb 2025 18:25:34 GMT, Chris Plummer <cjplum...@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.

The jvm feature link time optimization can be configured for a 'normal' JVM, 
this has afaik nothing to do with a minimal JVM .
Currently this configure option only changes the compile and link flags of 
libjvm so the compile and link flags of the JDK native libs are not changed.

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

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

Reply via email to