Multiple ClassLoader for the same class
Tom Rodriguez
tom.rodriguez at oracle.com
Wed Apr 27 22:33:48 UTC 2016
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.
More information about the graal-dev
mailing list