test/hotspot/jtreg/runtime/appcds/ProhibitedPackage.java
changeset 48155 551de50b4ff7
parent 48138 78b2ecdd3c4b
child 48156 a8f9aac3c2e5
--- a/test/hotspot/jtreg/runtime/appcds/ProhibitedPackage.java	Wed Nov 29 16:45:31 2017 -0800
+++ b/test/hotspot/jtreg/runtime/appcds/ProhibitedPackage.java	Tue Nov 28 09:47:04 2017 -0800
@@ -27,6 +27,7 @@
  * @summary AppCDS handling of prohibited package.
  * AppCDS does not support uncompressed oops
  * @requires (vm.opt.UseCompressedOops == null) | (vm.opt.UseCompressedOops == true)
+ * @requires vm.cds
  * @library /test/lib
  * @modules java.base/jdk.internal.misc
  *          java.management
@@ -45,10 +46,8 @@
 
         String appJar = TestCommon.getTestJar("prohibited_pkg.jar");
 
-        // AppCDS for custom loader is only supported on linux-x64 and
-        // Solaris 64-bit platforms.
-        if ((Platform.isLinux() || Platform.isSolaris()) &&
-            Platform.is64bit()) {
+        // Test support for customer loaders
+        if (Platform.areCustomLoadersSupportedForCDS()) {
             String classlist[] = new String[] {
                 "java/lang/Object id: 1",
                 "java/lang/Prohibited id: 2 super: 1 source: " + appJar