Any way to avoid JIT overhead for small programs when using AOT?

jayaprabhakar k jayaprabhakar at gmail.com
Mon Sep 10 03:58:02 UTC 2018


Hi,
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?

Thanks,
JP
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/hotspot-compiler-dev/attachments/20180909/86bb6624/attachment.html>


More information about the hotspot-compiler-dev mailing list