RFR: 8370438: Offer link time optimization support on library level [v2]

Matthias Baesken mbaesken at openjdk.org
Wed Oct 29 12:59:07 UTC 2025


> We currently have support for LTO (link time optimization) for Hotspot/libjvm, that can be enabled as a JVM feature.
> But for other JDK native libs, we do not have support for this feature.
> LTO and sometimes lead to faster and also in some cases smaller binaries, so support for this might be interesting also for other libs and not only libjvm.

Matthias Baesken has updated the pull request incrementally with one additional commit since the last revision:

  Do not enable LTO for some libs in this PR

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/27976/files
  - new: https://git.openjdk.org/jdk/pull/27976/files/ab71b582..b54cbed6

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=27976&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=27976&range=00-01

  Stats: 2 lines in 1 file changed: 0 ins; 2 del; 0 mod
  Patch: https://git.openjdk.org/jdk/pull/27976.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/27976/head:pull/27976

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


More information about the client-libs-dev mailing list