Mercurial > hg > graal-jvmci-8
comparison jvmci/jdk.vm.ci.services/src/jdk/vm/ci/services/Services.java @ 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 | 9779df770504 |
children | cd8fd4cced6c |
comparison
equal
deleted
inserted
replaced
23368:30544794ea23 | 23369:5aa3b3a72e35 |
---|---|
65 } | 65 } |
66 } | 66 } |
67 }; | 67 }; |
68 | 68 |
69 /** | 69 /** |
70 * Performs any required security checks and dynamic reconfiguration to allow the module of a | |
71 * given class to access the classes in the JVMCI module. | |
72 * | |
73 * Note: This API exists to provide backwards compatibility for JVMCI clients compiled against a | |
74 * JDK release earlier than 9. | |
75 * | |
76 * @param requestor a class requesting access to the JVMCI module for its module | |
77 * @throws SecurityException if a security manager is present and it denies | |
78 * {@code RuntimePermission("jvmci")} | |
79 */ | |
80 public static void exportJVMCITo(Class<?> requestor) { | |
81 // There are no modules in JVMCI-8. | |
82 } | |
83 | |
84 /** | |
70 * Gets an {@link Iterable} of the JVMCI providers available for a given service. | 85 * Gets an {@link Iterable} of the JVMCI providers available for a given service. |
71 * | 86 * |
72 * @throws SecurityException if a security manager is present and it denies <tt> | 87 * @throws SecurityException if a security manager is present and it denies <tt> |
73 * {@link RuntimePermission}("jvmci")</tt> | 88 * {@link RuntimePermission}("jvmci")</tt> |
74 */ | 89 */ |