Mercurial > hg > graal-jvmci-8
changeset 23369:5aa3b3a72e35
jdk.vm.ci needs to securely export services (JDK-8155023)
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Sun, 01 May 2016 23:58:05 +0200 |
parents | 30544794ea23 |
children | 858e9beeeda6 |
files | jvmci/jdk.vm.ci.services/src/jdk/vm/ci/services/Services.java |
diffstat | 1 files changed, 15 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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 <tt>