RFR: 8155824: JDK build should tune down small apps more aggressively

Claes Redestad claes.redestad at oracle.com
Mon May 2 13:41:56 UTC 2016

Hi build-dev!

I recently discovered that running with -XX:TieredStopAtLevel=1 can 
speed up jmod execution a bit:


Applying this to the runner itself might be a mouthful, but it seems 
profitable to apply this to JDK
build itself. The question was raised if we would get benefits elsewhere 
if we apply it to all "small"
java targets...

Some experimental results on my machine:

time make images

real    2m39.281s
user    42m15.164s
sys    3m56.388s

-XX:TieredStopAtLevel=1 for jmod target only:

real    2m34.913s
user    38m18.112s
sys    3m44.528s

-XX:TieredStopAtLevel=1 for all small java targets in makefiles:

real    2m29.490s
user    35m45.944s
sys    3m33.428s

Reports indicate the real time improvement is even better on smaller 

I thus propose this patch:

Bug: https://bugs.openjdk.java.net/browse/JDK-8155824



More information about the build-dev mailing list