RFR: JDK-8221764: Reduce make Init.gmk logging overhead
Erik Joelsson
erik.joelsson at oracle.com
Mon Apr 1 16:26:05 UTC 2019
The Init.gmk and InitSupport.gmk makefiles provide the foundational
framework for bootstrapping the build. That bootstrap process has grown
over time and is starting to take significant time to execute on
Windows. One reason for this is that every extra command executed at
this level gets the whole build log piping construct added to it. On
Windows, this amounts to quite a few extra processes.
I would like to reduce this by introducing a simpler log piping
construct for commands that are not expected to generate both stdout and
stderr output, typically simple "echo" and "printf" statements. For
these a simple "| tee -a <logfile>" should suffice.
This change slightly improves incremental build performance on Windows.
Bug: https://bugs.openjdk.java.net/browse/JDK-8221764
Webrev: http://cr.openjdk.java.net/~erikj/8221764/webrev.01/
/Erik
More information about the build-dev
mailing list