# HG changeset patch # User Doug Simon # Date 1462139885 -7200 # Node ID 5aa3b3a72e35181e8839793757bc08b84257bcc5 # Parent 30544794ea23e8a9735c41b86b860db93eecd818 jdk.vm.ci needs to securely export services (JDK-8155023) diff -r 30544794ea23 -r 5aa3b3a72e35 jvmci/jdk.vm.ci.services/src/jdk/vm/ci/services/Services.java --- a/jvmci/jdk.vm.ci.services/src/jdk/vm/ci/services/Services.java Sun May 01 11:24:36 2016 +0200 +++ b/jvmci/jdk.vm.ci.services/src/jdk/vm/ci/services/Services.java Sun May 01 23:58:05 2016 +0200 @@ -67,6 +67,21 @@ }; /** + * Performs any required security checks and dynamic reconfiguration to allow the module of a + * given class to access the classes in the JVMCI module. + * + * Note: This API exists to provide backwards compatibility for JVMCI clients compiled against a + * JDK release earlier than 9. + * + * @param requestor a class requesting access to the JVMCI module for its module + * @throws SecurityException if a security manager is present and it denies + * {@code RuntimePermission("jvmci")} + */ + public static void exportJVMCITo(Class requestor) { + // There are no modules in JVMCI-8. + } + + /** * Gets an {@link Iterable} of the JVMCI providers available for a given service. * * @throws SecurityException if a security manager is present and it denies