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

Matthias Baesken mbaesken at openjdk.org
Tue Nov 4 16:49:06 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:

  Use lto configure flags in hs build

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/27976/files
  - new: https://git.openjdk.org/jdk/pull/27976/files/6adc512d..72ba9ed1

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

  Stats: 11 lines in 1 file changed: 0 ins; 5 del; 6 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 build-dev mailing list