Mercurial > hg > graal-jvmci-8
diff jvmci/jdk.vm.ci.services/src/jdk/vm/ci/services/Services.java @ 23380:cd8fd4cced6c
added JVMCIPermission (JDK-8155023)
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Mon, 09 May 2016 16:34:20 +0200 |
parents | 5aa3b3a72e35 |
children | f84a5ac3be22 |
line wrap: on
line diff
--- a/jvmci/jdk.vm.ci.services/src/jdk/vm/ci/services/Services.java Mon May 09 16:08:16 2016 +0200 +++ b/jvmci/jdk.vm.ci.services/src/jdk/vm/ci/services/Services.java Mon May 09 16:34:20 2016 +0200 @@ -75,7 +75,7 @@ * * @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")} + * {@link JVMCIPermission} */ public static void exportJVMCITo(Class<?> requestor) { // There are no modules in JVMCI-8. @@ -91,7 +91,7 @@ public static <S> Iterable<S> load(Class<S> service) { SecurityManager sm = System.getSecurityManager(); if (sm != null) { - sm.checkPermission(new RuntimePermission("jvmci")); + sm.checkPermission(new JVMCIPermission()); } try { return (Iterable<S>) cache.get(service); @@ -113,7 +113,7 @@ public static <S> S loadSingle(Class<S> service, boolean required) { SecurityManager sm = System.getSecurityManager(); if (sm != null) { - sm.checkPermission(new RuntimePermission("jvmci")); + sm.checkPermission(new JVMCIPermission()); } Iterable<S> providers; try {