Speeding up the build process of OpenJDK
gerard ziemski
gerard.ziemski at oracle.com
Mon Sep 28 14:55:35 UTC 2015
hi Manas,
How do you configure the jdk for a build? In particular are you enabling the multithreading option (ie. --with-jobs=x)
to match your Mac's number of cores? In my case (5 year old MacBook Pro) here is what my configure looks like:
./configure --with-jobs=8 --disable-warnings-as-errors --with-jvm-variants=server --enable-deploy=no --enable-installer=no
Secondly, I noticed that using SSD instead of regular HDD gives a very nice performance boost.
Lastly, just for a ballpark comparison, since it's been a while since I build jdk8, my jdk9 built time for "make images"
using the configure option I showed above is about 10 minutes. Subsequent builds of "make images" when touching 1 file
from hotspot is about 1 minute.
ps. I do have an Xcode project that lets me edit hotspot from Xcode and rebuilt just the hotspot lib that only takes
about 20 seconds. I will see if I can make it public, if you're interested.
cheers
On 09/28/2015 03:59 AM, Manas Thakur wrote:
> Hello all,
>
> I use OpenJDK 8 built on Mac OS X Yosemite. The compilation process after doing even minor changes is very slow (takes about 15-20 minutes; with ccache enabled). Is it because the gcc version I have to use on Yosemite is older (gcc 4.2 supplied with Xcode 4.6.3)? If yes, any ideas on speeding up the incremental builds?
>
> Regards,
> Manas
>
More information about the hotspot-dev
mailing list