test/compiler/jvmci/SecurityRestrictionsTest.java
Index Unified diffs Context diffs Sdiffs Frames Patch New Old Previous File Next File hotspot Sdiff test/compiler/jvmci

test/compiler/jvmci/SecurityRestrictionsTest.java

Print this page




  26  * @bug 8136421
  27  * @requires vm.jvmci
  28  * @library /test/lib /
  29  * @library common/patches
  30  * @modules java.base/jdk.internal.misc
  31  * @modules jdk.internal.vm.ci/jdk.vm.ci.hotspot
  32  * @build jdk.internal.vm.ci/jdk.vm.ci.hotspot.CompilerToVMHelper
  33  * @run main/othervm -XX:+UnlockExperimentalVMOptions
  34  *      -XX:+EnableJVMCI
  35  *      compiler.jvmci.SecurityRestrictionsTest
  36  *      NO_SEC_MAN
  37  * @run main/othervm -XX:+UnlockExperimentalVMOptions
  38  *      -XX:+EnableJVMCI
  39  *      compiler.jvmci.SecurityRestrictionsTest
  40  *      NO_PERM
  41  * @run main/othervm -XX:+UnlockExperimentalVMOptions
  42  *      -XX:+EnableJVMCI
  43  *      compiler.jvmci.SecurityRestrictionsTest
  44  *      ALL_PERM
  45  * @run main/othervm -XX:+UnlockExperimentalVMOptions
  46  *      -XX:+EnableJVMCI
  47  *      compiler.jvmci.SecurityRestrictionsTest
  48  *      NO_JVMCI_ACCESS_PERM
  49  * @run main/othervm -XX:+UnlockExperimentalVMOptions
  50  *      -XX:-EnableJVMCI
  51  *      compiler.jvmci.SecurityRestrictionsTest
  52  *      NO_JVMCI
  53  */
  54 
  55 package compiler.jvmci;
  56 
  57 import jdk.test.lib.Utils;
  58 
  59 import java.security.AccessControlException;
  60 import java.security.Permission;
  61 import java.util.PropertyPermission;
  62 import java.util.function.Consumer;
  63 
  64 public class SecurityRestrictionsTest {
  65 
  66     public static void main(String[] args) {
  67         try {
  68             // to init Utils before call SecurityManager
  69             Class.forName(Utils.class.getName(), true,
  70                     Utils.class.getClassLoader());




  26  * @bug 8136421
  27  * @requires vm.jvmci
  28  * @library /test/lib /
  29  * @library common/patches
  30  * @modules java.base/jdk.internal.misc
  31  * @modules jdk.internal.vm.ci/jdk.vm.ci.hotspot
  32  * @build jdk.internal.vm.ci/jdk.vm.ci.hotspot.CompilerToVMHelper
  33  * @run main/othervm -XX:+UnlockExperimentalVMOptions
  34  *      -XX:+EnableJVMCI
  35  *      compiler.jvmci.SecurityRestrictionsTest
  36  *      NO_SEC_MAN
  37  * @run main/othervm -XX:+UnlockExperimentalVMOptions
  38  *      -XX:+EnableJVMCI
  39  *      compiler.jvmci.SecurityRestrictionsTest
  40  *      NO_PERM
  41  * @run main/othervm -XX:+UnlockExperimentalVMOptions
  42  *      -XX:+EnableJVMCI
  43  *      compiler.jvmci.SecurityRestrictionsTest
  44  *      ALL_PERM
  45  * @run main/othervm -XX:+UnlockExperimentalVMOptions
  46  *      -XX:+EnableJVMCI -XX:-UseJVMCICompiler
  47  *      compiler.jvmci.SecurityRestrictionsTest
  48  *      NO_JVMCI_ACCESS_PERM
  49  * @run main/othervm -XX:+UnlockExperimentalVMOptions
  50  *      -XX:-EnableJVMCI -XX:-UseJVMCICompiler
  51  *      compiler.jvmci.SecurityRestrictionsTest
  52  *      NO_JVMCI
  53  */
  54 
  55 package compiler.jvmci;
  56 
  57 import jdk.test.lib.Utils;
  58 
  59 import java.security.AccessControlException;
  60 import java.security.Permission;
  61 import java.util.PropertyPermission;
  62 import java.util.function.Consumer;
  63 
  64 public class SecurityRestrictionsTest {
  65 
  66     public static void main(String[] args) {
  67         try {
  68             // to init Utils before call SecurityManager
  69             Class.forName(Utils.class.getName(), true,
  70                     Utils.class.getClassLoader());


test/compiler/jvmci/SecurityRestrictionsTest.java
Index Unified diffs Context diffs Sdiffs Frames Patch New Old Previous File Next File