Any way to avoid JIT overhead for small programs when using AOT?
Andrew Haley
aph at redhat.com
Mon Sep 10 08:17:59 UTC 2018
On 09/10/2018 04:58 AM, jayaprabhakar k wrote:
> I understand that at present AOT and -Xint are not compatible. I see the
> code explicitly disables AOT when -Xint is set
> <http://cr.openjdk.java.net/~kvn/8171137/webrev/raw_files/new/src/share/vm/aot/aotLoader.cpp>
> .
>
> For extremely short programs, typically used by beginners learning Java, I
> see that CDS, AOT and Xint all help reduce the startup time. While CDS
> works with both AOT and Xint, multiplying the benefits, AOT and Xint do
> not.
>
> Is there a way to keep both AOT + Xint, For classes/methods that are
> precompiled, use AOT code, and for others just interpret? If not now, would
> it be possible in the future?
Does it significantly help? If you precompile the Java library and your programs
are extremely short, you'll see very little compilation activity.
--
Andrew Haley
Java Platform Lead Engineer
Red Hat UK Ltd. <https://www.redhat.com>
EAC8 43EB D3EF DB98 CC77 2FAD A5CD 6035 332F A671
More information about the hotspot-compiler-dev
mailing list