Mercurial > hg > graal-jvmci-8
diff jvmci/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/services/HotSpotVMEventListener.java @ 23380:cd8fd4cced6c
added JVMCIPermission (JDK-8155023)
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Mon, 09 May 2016 16:34:20 +0200 |
parents | 8153a654bd10 |
children | 0226d6bcb0d2 |
line wrap: on
line diff
--- a/jvmci/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/services/HotSpotVMEventListener.java Mon May 09 16:08:16 2016 +0200 +++ b/jvmci/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/services/HotSpotVMEventListener.java Mon May 09 16:34:20 2016 +0200 @@ -28,6 +28,7 @@ import jdk.vm.ci.hotspot.HotSpotJVMCIRuntime; import jdk.vm.ci.meta.JVMCIMetaAccessContext; import jdk.vm.ci.meta.ResolvedJavaType; +import jdk.vm.ci.services.JVMCIPermission; /** * Service-provider class for responding to VM events and for creating @@ -38,7 +39,7 @@ private static Void checkPermission() { SecurityManager sm = System.getSecurityManager(); if (sm != null) { - sm.checkPermission(new RuntimePermission("jvmci")); + sm.checkPermission(new JVMCIPermission()); } return null; } @@ -51,7 +52,7 @@ * Initializes a new instance of this class. * * @throws SecurityException if a security manager has been installed and it denies - * {@code RuntimePermission("jvmci")} + * {@link JVMCIPermission} */ protected HotSpotVMEventListener() { this(checkPermission());