Any way to avoid JIT overhead for small programs when using AOT?
dean.long at oracle.com
dean.long at oracle.com
Mon Sep 10 08:00:29 UTC 2018
On 9/9/18 8:58 PM, jayaprabhakar k wrote:
> 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/%7Ekvn/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
Hi JP. Yes, it could be possible in the future. One problem is
MethodHandle intrinsics. With -Xint, there's no code heap, so no place
to generate native adapters for those intrinsics.
dl
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/hotspot-compiler-dev/attachments/20180910/5f3ec9cd/attachment.html>
More information about the hotspot-compiler-dev
mailing list