RFR: 8167180: [JVMCI] Exported elements referring to inaccessible types in jdk.vm.ci
Doug Simon
doug.simon at oracle.com
Mon Oct 10 22:01:46 UTC 2016
I just updated the webrev to adapt a number of jtreg tests to the API changes.
Also, JVMCICompilerFactory, HotSpotVMEventListener and EventProvider are all interfaces now (instead of abstract classes).
-Doug
> On 10 Oct 2016, at 22:18, Doug Simon <doug.simon at oracle.com> wrote:
>
> Please review this change with JVMCI API changes to address lint warnings introduced by https://bugs.openjdk.java.net/browse/JDK-8153362.
>
> JVMCI currently exports a few service types that are in exported packages so that a ServiceLoader can load them. The problem is that some of these service types reference other JVMCI types that are not in exported packages as reported by the new lint check. To address this mixing of exported and non-exported types, this webrev introduces a new (meta) service, jdk.vm.ci.services.JVMCIAccess, that is now used to get providers for all other services:
>
> jdk.vm.ci.runtime.JVMCICompilerFactory
> jdk.vm.ci.hotspot.HotSpotVMEventListener
>
> All uses of JVMCIAccess are subject to SecurityManager checks.
>
> https://bugs.openjdk.java.net/browse/JDK-8167180
> http://cr.openjdk.java.net/~dnsimon/8167180/
>
> -Doug
More information about the hotspot-compiler-dev
mailing list