RFR: 8177845: Need a mechanism to load Graal
Doug Simon
doug.simon at oracle.com
Thu Apr 20 07:56:45 UTC 2017
> On 20 Apr 2017, at 09:46, Andrew Haley <aph at redhat.com> wrote:
>
> On 19/04/17 19:55, Christian Thalinger wrote:
>> This all makes sense but where is the restriction that only jdk.internal.vm.compiler can use jdk.vm.ci.services? After all, this is a security issue.
>
> Does that make any sense? Surely the *user* of a system can call Truffle,
> and therefore can call JMCI.
Truffle is completely separate from JVMCI. Only the Graal implementation of TruffleRuntime knows about JVMCI.
> I thought that was the idea. If you can call
> Truffle from your own code, why shouldn't you be able to call JVMCI from
> your own compiler?
We may need to add some doPrivileged sections to Graal at some point ensure everything works when running Truffle under a security manager.
-Doug
More information about the hotspot-compiler-dev
mailing list