[9] RFR(L) 8166415: Integrate AOT tool JAOTC

Christian Thalinger cthalinger at twitter.com
Fri Oct 28 17:45:20 UTC 2016


> On Oct 27, 2016, at 9:57 PM, Vladimir Kozlov <vladimir.kozlov at oracle.com> wrote:
> 
> Webrevs updated in place (please, reload webpage to get new version).
> 
> http://cr.openjdk.java.net/~kvn/aot/jaotc.webrev/
> 
> jaotc tool package was renamed from com.oracle.graal.aot to jdk.tools.jaotc similar to other new jdk tools (link).

That’s good.  Thanks.

> 
> Switched to new internal Unsafe instead of old sun.misc Unsafe.
> 
> Thanks,
> Vladimir
> 
> On 10/27/16 2:39 PM, Vladimir Kozlov wrote:
>> Thanks Paul,
>> 
>> I think it is not difficult to adjust jaotc code to use internal Unsafe instead of sun.misc.Unsafe.
>> Give me an example and I will do that.
>> 
>> We have one UnsafeAccess.java class through which we do access:
>> 
>> http://cr.openjdk.java.net/~kvn/aot/jaotc.webrev/src/jdk.aot/share/classes/com.oracle.jnilibelf/src/com/oracle/jnilibelf/UnsafeAccess.java.html
>> 
>> Thanks,
>> Vladimir
>> On 10/27/16 1:56 PM, Paul Sandoz wrote:
>>> Hi Vladimir,
>>> 
>>> I think we should adjust to depend on the internal Unsafe and update the java.base module to export qualified to jdk.aot (like that for jdk.vm.compiler). It could easily be done later rather than
>>> now, if so I can log an issue.
>>> 
>>> Paul.
>>> 
>>>> On 26 Oct 2016, at 18:01, Vladimir Kozlov <vladimir.kozlov at oracle.com> wrote:
>>>> 
>>>> AOT JEP:
>>>> https://bugs.openjdk.java.net/browse/JDK-8166089
>>>> Subtask:
>>>> https://bugs.openjdk.java.net/browse/JDK-8166415
>>>> Webrev:
>>>> http://cr.openjdk.java.net/~kvn/aot/jaotc.webrev/
>>>> 
>>>> Please, review implementation of jaotc - Java Ahead-Of-Time static compiler. It produces native code for compiled java methods. It uses Graal as the code-generating backend and libelf for
>>>> generating shared .so AOT libraries. It is written mostly in java. Code interface to libelf is written in C.
>>>> 
>>>> Only Linux/x64 platform is supported. 'jaotc' and AOT part of Hotspot will be build only on Linux/x64.
>>>> 
>>>> Corresponding build changes are reviewed in a separate thread for https://bugs.openjdk.java.net/browse/JDK-8166416
>>>> 
>>>> http://cr.openjdk.java.net/~kvn/aot/top.webrev/
>>>> http://cr.openjdk.java.net/~kvn/aot/jdk.webrev/
>>>> http://cr.openjdk.java.net/~kvn/aot/hs.make.webrev/
>>>> 
>>>> Thanks,
>>>> Vladimir
>>> 



More information about the hotspot-dev mailing list