On Mon, 26 Oct 2026 22:23:12 GMT, Benjamin Peterson <[email protected]> 
wrote:

> Add `-fpch-instantiate-templates` to the clang precompiled header generation 
> command.
> 
> Testing with `make hotspot`, I observe a 40% reduction in build CPU time for 
> a release build. On a 56 core machine, this reduces the wall time of the same 
> command by 25% (45.94s -> 34.5s).
> 
> 
> 
> 
> ---------
> - [x] I confirm that I make this contribution in accordance with the [OpenJDK 
> Interim AI Policy](https://openjdk.org/legal/ai).

My tests were done on Ubuntu 26.04 x86_64. (clang version 21.1.8)

This change is a complete noop for GCC, so CI will only say something useful if 
there's any segments that do configure with `--with-toolchain-type=clang`.

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

PR Comment: https://git.openjdk.org/jdk/pull/33576#issuecomment-6431648660

Reply via email to