RFR: 8345265: Minor improvements for LTO across all compilers [v2]

Julian Waters jwaters at openjdk.org
Thu Mar 27 14:07:25 UTC 2025


On Thu, 27 Mar 2025 12:49:10 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:

> I did some builds today with gcc14.2.0 on Linux x86_64 . They looked good with and without LTO . Without lto / normal opt build du -sh images/jdk/lib/server/libjvm.so 27M images/jdk/lib/server/libjvm.so
> 
> WITH lto du -sh images/jdk/lib/server/libjvm.so 24M images/jdk/lib/server/libjvm.so
> 
> So even the code size reduction is visible. So gcc14 seems to work for me (but so far I only used it on Linux x86_64, can't tell about aarch64/ppc64le).

Great, so it's yet another case of "Compiler works on one platform and royally ***** up on another" again. Sigh. I just love it when that happens. Thanks for the report on the gcc 14 Linux JVM sizes though, at least I can narrow it down with your help. I'll have to think of a way to fix this going forward

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

PR Comment: https://git.openjdk.org/jdk/pull/22464#issuecomment-2758178119


More information about the hotspot-dev mailing list