[9] RFR(M) 8166416: [AOT] Integrate JDK build changes and launcher 'jaotc' for AOT compiler

Vladimir Kozlov vladimir.kozlov at oracle.com
Fri Oct 28 16:45:23 UTC 2016


I got some data. It is about 10% increase size with -g:

product build, no -g for AOT modules
   191173 Oct 28 09:15 build/product/images/jmods/jdk.aot.jmod
  4893583 Oct 28 09:16 build/product/images/jmods/jdk.vm.compiler.jmod
   352073 Oct 28 09:15 build/product/images/jmods/jdk.vm.ci.jmod

product build, AOT modules with -g
   208913 Oct 28 09:31 build/product/images/jmods/jdk.aot.jmod
  5465020 Oct 28 09:32 build/product/images/jmods/jdk.vm.compiler.jmod
   387958 Oct 28 09:32 build/product/images/jmods/jdk.vm.ci.jmod

Vladimir

On 10/28/16 1:43 AM, Alan Bateman wrote:
> On 28/10/2016 09:34, Erik Joelsson wrote:
>
>>
>> but maybe jlink is able to strip the debug info from java classes now? In that case we could consider globally enabling -g for product builds.
> Yes, it can, `jlink --strip-debug` (or `-G`). A good test would be to build with `javac -g` and then strip the debug information when generating the JRE image to see that it comes out at around the
> same size as the current build.
>
> -Alan.


More information about the hotspot-dev mailing list