On Tue, 3 Mar 2026 17:02:26 GMT, Matthias Baesken <[email protected]> wrote:

> Currently linktime-gc is enabled only on Linux s390x by default.
> See
> https://github.com/openjdk/jdk/blob/94a34a32aa723e4620f4ef4700b3e20d6ab9bf62/make/autoconf/jdk-options.m4#L106
> 
> We should enable it on Linux ppc64le too, to get smaller JDK native libs.
> (please take into account that on Linux ppc64le, linktime-gc is only set for 
> the JDK native libs, not for libjvm.so, because of still present issues with 
> the serviceability agent)
> 
> Not all JDK native libs change a lot in lib size when enabling linktime-gc, 
> but some shrink significantly, here are some good examples
> gcc14 devkit linuxppc64le, product build jdk27
> (normal => with ltgc)
> 
> 708 K => 500 K images/jdk/lib/liblcms.so
> 476 K => 300 K images/jdk/lib/libsaproc.so
> 788 K => 720 K images/jdk/lib/libmlib_image.so
> 2476 K => 1476 K images/jdk/lib/libfontmanager.so

This pull request has now been integrated.

Changeset: cb059a6b
Author:    Matthias Baesken <[email protected]>
URL:       
https://git.openjdk.org/jdk/commit/cb059a6b1b1686b7adcb2e88536060f4f7d47118
Stats:     6 lines in 1 file changed: 4 ins; 0 del; 2 mod

8378836: Enable linktime-gc by default on Linux ppc64le

Reviewed-by: erikj, jwaters, mdoerr

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

PR: https://git.openjdk.org/jdk/pull/30032

Reply via email to