RFR: 8199469: Disable generate-jli-classes when building interim-image

Claes Redestad claes.redestad at oracle.com
Mon Mar 12 18:26:59 UTC 2018


Hi,

during build we use an interim image to generate some optimization 
information,
e.g., the input for generate-jli-classes jlink plugin for the real 
build. Turns out
jlinking the interim-image picks up the output from such training runs, 
which adds
to the build time when we run incremental builds, and worse: it might 
mean we
use stale information that could potentially make building the 
interim-image fail
or do some really non-obvious things (an issue I ran into as I was 
experimenting
with allowing the plugin to generate more kinds of LFs).

I suggest disabling the generate-jli-classes plugin when building the 
interim-image,
avoiding such cycles:

http://cr.openjdk.java.net/~redestad/8199469/open.00/

A trivial one-liner fix, but as this is .gmk then I'm sure some would 
want to check
I've used the proper mix of tabs and spaces... ;-)

Thanks!

/Claes



More information about the build-dev mailing list