test/hotspot/jtreg/runtime/SharedArchiveFile/DumpSharedDictionary.java
changeset 49348 fde3feaaa4ed
parent 49008 d777541fceba
child 49931 840e26123940
equal deleted inserted replaced
49347:edb65305d3ac 49348:fde3feaaa4ed
    79 
    79 
    80             pb.command(new String[] {JDKToolFinder.getJDKTool("jcmd"), pid, "VM.systemdictionary", "-verbose"});
    80             pb.command(new String[] {JDKToolFinder.getJDKTool("jcmd"), pid, "VM.systemdictionary", "-verbose"});
    81             output = CDSTestUtils.executeAndLog(pb, "jcmd-systemdictionary-verbose");
    81             output = CDSTestUtils.executeAndLog(pb, "jcmd-systemdictionary-verbose");
    82             try {
    82             try {
    83                 output.shouldContain("Shared Dictionary");
    83                 output.shouldContain("Shared Dictionary");
    84                 output.shouldContain("Dictionary for class loader 0x");
    84                 output.shouldContain("Dictionary for loader data: 0x");
    85                 output.shouldContain("^java.lang.String");
    85                 output.shouldContain("^java.lang.String");
    86             } catch (RuntimeException e) {
    86             } catch (RuntimeException e) {
    87                 output.shouldContain("Unknown diagnostic command");
    87                 output.shouldContain("Unknown diagnostic command");
    88             }
    88             }
    89         }
    89         }