RFR: 8304930: Enable Link Time Optimization as an option for Visual C++ [v2]

Julian Waters jwaters at openjdk.org
Fri Apr 14 15:32:45 UTC 2023


> Currently, Link Time Optimization is only available for Java Virtual Machines compiled with gcc. Since the Java VM is the most performance critical part of the Java Platform for obvious reasons, it follows that optimized executables produced for Windows (as Visual C++ is currently the only compiler available for Windows as [JDK-8288293](https://bugs.openjdk.org/browse/JDK-8288293) is still under heavy development) would grant a significant performance boost for Java on Windows as a whole. Flags used for link time optimizations are set to make compiling with it enabled as fast as possible, to avoid the pitfall of very long compile times
> 
> Depends on [JDK-8304893](https://bugs.openjdk.org/browse/JDK-8304893) being integrated first, to prove that link time optimization is viable as an option

Julian Waters has updated the pull request incrementally with one additional commit since the last revision:

  Revert

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/13280/files
  - new: https://git.openjdk.org/jdk/pull/13280/files/034acc4f..b6b40622

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

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

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



More information about the build-dev mailing list