Multiple ClassLoader for the same class
Juan Fumero
juan.fumero at ed.ac.uk
Thu Apr 28 10:08:10 UTC 2016
Hi Tom,
yes you are right. I am using mx Rscript with server mode but I need
the -XX:-UseJVMCIClassLoader. If I do that there is no problem.
Thanks a lot
Juan
On Wed, 2016-04-27 at 15:33 -0700, Tom Rodriguez wrote:
> It sounds like you have graal-compiler.jar on your classpath and it
> doesn’t need to be there. It’s possible you should be running with
> -XX:-UseJVMCIClassLoader so that graal is exposed through the
> bootclasspath instead of being isolated in it’s own class loader.
>
> tom
>
> >
> > On Apr 27, 2016, at 10:16 AM, Juan Fumero <juan.fumero at ed.ac.uk>
> > wrote:
> >
> > Hi all,
> > I am trying to work with the StructuredGraph in the Truffle
> > level.
> >
> > But I get the following error:
> >
> > java.io.IOException: com.oracle.truffle.r.runtime.RInternalError:
> > java.lang.ClassCastException:
> > com.oracle.graal.nodes.StructuredGraph
> > cannot be cast to com.oracle.graal.nodes.StructuredGraph
> >
> > If I trace the Class Loading and unloading I get the following:
> >
> > [Loaded com.oracle.graal.nodes.StructuredGraph from
> > file:/home/juan/phd/astx-
> > compiler/jvmci/jdk1.8.0_91/product/jre/lib/jvmci/graal-
> > compiler.jar]
> > And later on
> >
> > [Loaded com.oracle.graal.nodes.StructuredGraph from
> > file:/home/juan/phd/astx-compiler/graal/mxbuild/dists/graal-
> > compiler.jar]
> >
> > And then I get the error. Any idea? Any work around? Customize
> > Class
> > loading?
> >
> >
> > Thanks
> > JuanThe University of Edinburgh is a charitable body, registered in
> > Scotland, with registration number SC005336.
>
--
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.
More information about the graal-dev
mailing list