Re: Running jaotc with an external Graal

2017-02-16 Thread Mandy Chung
> On Feb 16, 2017, at 1:33 AM, Doug Simon wrote: > > With the current bits in jdk9/hs and graal-core, the following bootstrapping > command works in terms of replacing Graal in the JDK: > > java -server -XX:+UnlockExperimentalVMOptions >

Re: Running jaotc with an external Graal

2017-02-16 Thread Doug Simon
With the current bits in jdk9/hs and graal-core, the following bootstrapping command works in terms of replacing Graal in the JDK: java -server -XX:+UnlockExperimentalVMOptions --module-path=/Users/dsimon/hs/truffle/mxbuild/modules/com.oracle.truffle.truffle_api.jar

Re: Running jaotc with an external Graal

2017-02-16 Thread Andrew Haley
On 15/02/17 21:56, Christian Thalinger wrote: > >> On Feb 14, 2017, at 4:38 AM, Andrew Haley wrote: >> >> On 14/02/17 14:37, Alan Bateman wrote: >>> --patch-module can be used to patch any module in the boot layer. So if >>> you are looking to override or add classes then

Re: Running jaotc with an external Graal

2017-02-15 Thread Remi Forax
w-dev@openjdk.java.net, "hotspot compiler" > <hotspot-compiler-...@openjdk.java.net>, graal-...@openjdk.java.net > Envoyé: Mercredi 15 Février 2017 23:44:19 > Objet: Re: Running jaotc with an external Graal >> On Feb 15, 2017, at 1:56 PM, Christian Thalinger <

Re: Running jaotc with an external Graal

2017-02-15 Thread Mandy Chung
> On Feb 15, 2017, at 1:56 PM, Christian Thalinger > wrote: > > >> On Feb 14, 2017, at 4:38 AM, Andrew Haley wrote: >> >> On 14/02/17 14:37, Alan Bateman wrote: >>> --patch-module can be used to patch any module in the boot layer. So if >>> you are

Re: Running jaotc with an external Graal

2017-02-15 Thread Christian Thalinger
> On Feb 14, 2017, at 4:38 AM, Andrew Haley wrote: > > On 14/02/17 14:37, Alan Bateman wrote: >> --patch-module can be used to patch any module in the boot layer. So if >> you are looking to override or add classes then --patch-module should work. > > Aha! Thanks, Does it?

Re: Running jaotc with an external Graal

2017-02-15 Thread Doug Simon
I don’t know how one patches a module in the middle of the module graph. That is, we use --patch-module and --upgrade-module-path to override the jdk.vm.compiler module in the JDK. I don’t know what that means for modules such as jdk.aot that depend on jdk.vm.compiler. Maybe someone from the

Re: Running jaotc with an external Graal

2017-02-14 Thread Andrew Haley
On 14/02/17 14:37, Alan Bateman wrote: > --patch-module can be used to patch any module in the boot layer. So if > you are looking to override or add classes then --patch-module should work. Aha! Thanks, Andrew.

Re: Running jaotc with an external Graal

2017-02-14 Thread Alan Bateman
On 14/02/2017 14:20, Andrew Haley wrote: On 14/02/17 13:34, Doug Simon wrote: I don’t know how one patches a module in the middle of the module graph. That is, we use --patch-module and --upgrade-module-path to override the jdk.vm.compiler module in the JDK. I don’t know what that means for

Re: Running jaotc with an external Graal

2017-02-14 Thread Andrew Haley
On 14/02/17 13:34, Doug Simon wrote: > I don’t know how one patches a module in the middle of the module > graph. That is, we use --patch-module and --upgrade-module-path to > override the jdk.vm.compiler module in the JDK. I don’t know what > that means for modules such as jdk.aot that depend on