< prev index next >
test/hotspot/jtreg/runtime/cds/DumpSymbolAndStringTable.java
Print this page
*** 32,41 ****
--- 32,42 ----
import jdk.test.lib.process.ProcessTools;
import jdk.test.lib.process.OutputAnalyzer;
import jdk.test.lib.JDKToolFinder;
public class DumpSymbolAndStringTable {
+ private static final String my_string = "DumpSymbolAndStringTable";
public static void main(String[] args) throws Exception {
// Grab my own PID
String pid = Long.toString(ProcessTools.getProcessId());
ProcessBuilder pb = new ProcessBuilder();
*** 48,58 ****
}
pb.command(new String[] {JDKToolFinder.getJDKTool("jcmd"), pid, "VM.stringtable", "-verbose"});
output = CDSTestUtils.executeAndLog(pb, "jcmd-stringtable");
try {
! output.shouldContain("16: java.lang.String\n");
} catch (RuntimeException e) {
output.shouldContain("Unknown diagnostic command");
}
pb.command(new String[] {JDKToolFinder.getJDKTool("jcmd"), pid, "VM.systemdictionary"});
--- 49,59 ----
}
pb.command(new String[] {JDKToolFinder.getJDKTool("jcmd"), pid, "VM.stringtable", "-verbose"});
output = CDSTestUtils.executeAndLog(pb, "jcmd-stringtable");
try {
! output.shouldContain("24: DumpSymbolAndStringTable");
} catch (RuntimeException e) {
output.shouldContain("Unknown diagnostic command");
}
pb.command(new String[] {JDKToolFinder.getJDKTool("jcmd"), pid, "VM.systemdictionary"});
< prev index next >