< prev index next >

test/runtime/SharedArchiveFile/DefaultUseWithClient.java

Print this page




  31  * @run main DefaultUseWithClient
  32  * @bug 8032224
  33  */
  34 
  35 import jdk.test.lib.cds.CDSTestUtils;
  36 import jdk.test.lib.process.OutputAnalyzer;
  37 import jdk.test.lib.Platform;
  38 import java.io.File;
  39 
  40 public class DefaultUseWithClient {
  41     public static void main(String[] args) throws Exception {
  42         // On 32-bit windows CDS should be on by default in "-client" config
  43         // Skip this test on any other platform
  44         boolean is32BitWindows = (Platform.isWindows() && Platform.is32bit());
  45         if (!is32BitWindows) {
  46             System.out.println("Test only applicable on 32-bit Windows. Skipping");
  47             return;
  48         }
  49 
  50         CDSTestUtils.createArchiveAndCheck();
  51         CDSTestUtils.runWithArchiveAndCheck("-client", "-XX:+PrintSharedSpaces");
  52    }
  53 }


  31  * @run main DefaultUseWithClient
  32  * @bug 8032224
  33  */
  34 
  35 import jdk.test.lib.cds.CDSTestUtils;
  36 import jdk.test.lib.process.OutputAnalyzer;
  37 import jdk.test.lib.Platform;
  38 import java.io.File;
  39 
  40 public class DefaultUseWithClient {
  41     public static void main(String[] args) throws Exception {
  42         // On 32-bit windows CDS should be on by default in "-client" config
  43         // Skip this test on any other platform
  44         boolean is32BitWindows = (Platform.isWindows() && Platform.is32bit());
  45         if (!is32BitWindows) {
  46             System.out.println("Test only applicable on 32-bit Windows. Skipping");
  47             return;
  48         }
  49 
  50         CDSTestUtils.createArchiveAndCheck();
  51         CDSTestUtils.runWithArchiveAndCheck("-client", "-Xlog:cds");
  52    }
  53 }
< prev index next >