test/hotspot/jtreg/runtime/cds/appcds/CommandLineFlagCombo.java
changeset 59053 ba6c248cae19
parent 58944 bb2a436e616c
equal deleted inserted replaced
59051:f0312c7d5b37 59053:ba6c248cae19
    48 
    48 
    49 public class CommandLineFlagCombo {
    49 public class CommandLineFlagCombo {
    50 
    50 
    51     // shared base address test table
    51     // shared base address test table
    52     private static final String[] testTable = {
    52     private static final String[] testTable = {
    53         "-XX:+UseG1GC", "-XX:+UseSerialGC", "-XX:+UseParallelGC", "-XX:+UseConcMarkSweepGC",
    53         "-XX:+UseG1GC", "-XX:+UseSerialGC", "-XX:+UseParallelGC",
    54         "-XX:+FlightRecorder",
    54         "-XX:+FlightRecorder",
    55         "-XX:+UseLargePages", // may only take effect on machines with large-pages
    55         "-XX:+UseLargePages", // may only take effect on machines with large-pages
    56         "-XX:+UseCompressedClassPointers",
    56         "-XX:+UseCompressedClassPointers",
    57         "-XX:+UseCompressedOops",
    57         "-XX:+UseCompressedOops",
    58         "-XX:ObjectAlignmentInBytes=16",
    58         "-XX:ObjectAlignmentInBytes=16",
   121                 System.out.println("Test case not applicable on 32-bit platforms");
   121                 System.out.println("Test case not applicable on 32-bit platforms");
   122                 return true;
   122                 return true;
   123             }
   123             }
   124         }
   124         }
   125 
   125 
   126         if (Compiler.isGraalEnabled() && testEntry.equals("-XX:+UseConcMarkSweepGC"))
       
   127         {
       
   128             System.out.println("Graal does not support CMS");
       
   129             return true;
       
   130         }
       
   131 
       
   132         if (!WhiteBox.getWhiteBox().isJFRIncludedInVmBuild() && testEntry.equals("-XX:+FlightRecorder"))
   126         if (!WhiteBox.getWhiteBox().isJFRIncludedInVmBuild() && testEntry.equals("-XX:+FlightRecorder"))
   133         {
   127         {
   134             System.out.println("JFR does not exist");
   128             System.out.println("JFR does not exist");
   135             return true;
   129             return true;
   136         }
   130         }
   137 
       
   138         return false;
   131         return false;
   139     }
   132     }
   140 }
   133 }