test/hotspot/jtreg/runtime/appcds/LotsOfClasses.java
changeset 52702 10c6e9066819
parent 52631 3009ca99de32
child 52811 ff04b71bf6f1
equal deleted inserted replaced
52701:c724619944f1 52702:10c6e9066819
    55         CDSOptions opts = new CDSOptions();
    55         CDSOptions opts = new CDSOptions();
    56         opts.setClassList(list);
    56         opts.setClassList(list);
    57         opts.addSuffix("--add-modules");
    57         opts.addSuffix("--add-modules");
    58         opts.addSuffix("ALL-SYSTEM");
    58         opts.addSuffix("ALL-SYSTEM");
    59         opts.addSuffix("-Xlog:hashtables");
    59         opts.addSuffix("-Xlog:hashtables");
       
    60         opts.addSuffix("-Xms500m");
       
    61         opts.addSuffix("-Xmx500m");
    60 
    62 
    61         OutputAnalyzer out = CDSTestUtils.createArchive(opts);
    63         OutputAnalyzer out = CDSTestUtils.createArchive(opts);
    62         CDSTestUtils.checkDump(out);
    64         try {
       
    65             CDSTestUtils.checkDump(out);
       
    66         } catch (java.lang.RuntimeException re) {
       
    67             out.shouldContain(
       
    68                 "number of memory regions exceeds maximum due to fragmentation");
       
    69         }
    63     }
    70     }
    64 
    71 
    65     static void findAllClasses(ArrayList<String> list) throws Throwable {
    72     static void findAllClasses(ArrayList<String> list) throws Throwable {
    66         // Find all the classes in the jrt file system
    73         // Find all the classes in the jrt file system
    67         pattern = Pattern.compile("/modules/[a-z.]*[a-z]+/([^-]*)[.]class");
    74         pattern = Pattern.compile("/modules/[a-z.]*[a-z]+/([^-]*)[.]class");