jdk 8 building just jdk
Alan Bateman
Alan.Bateman at oracle.com
Sat Jul 27 17:22:23 UTC 2013
On 26/07/2013 23:24, Phil Race wrote:
> Flogging a dead horse here ..
>
> > it shouldn't really be necessary to do partial builds any more (it
> was way too fragile in the past with the old build)
>
> I whole heartedly disagree. I've said it before and I say it again.
> I do not want to build hotspot or anything else besides JDK
> I do not want to maintain all the disk space for these.
> The overhead of these repos is painful.
> It is not fragile to build only JDK. I have > 10 years of experience
> here.
>
> I used to do incrementals in 10-15 seconds with the old build. Much
> better than 3 mins.
> I tried JDK_FILTER but it was not reliable. sjavac working by default
> was supposed to
> be a pre-requisite to the new build but that didn't happen.
>
> I've learned the new build is fast on Linux but slow on Windows which
> is what matters most.
>
> Bear in mind that 999/1000 of my builds are incremental and calculate
> how that adds up.
>
> Bottom line: the new build is costing me a lot. If people who don't
> work primarily on
> Windows aren't working on this, then that needs to be fixed.
Partial builds, as in the old build, are very fragile. When doing
partial builds then the import JDK has to match almost exactly the
repository that you are building as otherwise there will be problems and
those problems can be very hard to diagnose. There are been dozens of
changes in jdk8 that have required coordinated changes to two or more
repositories (typically langtools+jdk or hotspot+jdk, even one or two
that were langtools+hotspot+jdk). The new build has some support for
this things of working, maybe --with-import-hotspot will be useful to
you (assuming you have the disk space, and disk space should be cheap).
For most people then incremental build performance is the highest
priority. If you have issues with JDK_FILTER (which is really just a
short term workaround until sjavac is enabled) then make sure that there
is a bug submitted. I don't think that sjavac was ever a pre-requisite
to the new build (I wish it were) but hopefully the remaining issues can
be sorted out soon.
-Alan
More information about the build-dev
mailing list