RFR: JDK-8182285: Speeding up incremental build by hashing module APIs

Magnus Ihse Bursie magnus.ihse.bursie at oracle.com
Thu Oct 19 14:37:25 UTC 2017


On 2017-10-19 15:47, Erik Joelsson wrote:
> This patch introduces a new Javac plugin as a build tool, written by 
> Jan Lahoda. The plugin creates a hash of the public API of what is 
> being compiled and puts it in a file. The file is only updated if 
> there is a difference compared to the current contents of the file. I 
> have provided the integration with the build system.
>
> The benefit of this is that we finally get some reasonable incremental 
> build performance between modules. If you make a change to a class in 
> java.base that doesn't touch the public API, the build will no longer 
> recompile all other modules.
>
> Webrev: http://cr.openjdk.java.net/~erikj/8182285/webrev.02/
Looks good to me.

Nice to finally see this happening! :-)

/Magnus
>
> Bug: https://bugs.openjdk.java.net/browse/JDK-8182285
>
> /Erik
>




More information about the build-dev mailing list