Skip to content

Commit

Permalink
8299777: Test runtime/NMT/BaselineWithParameter.java timed out
Browse files Browse the repository at this point in the history
Reviewed-by: gziemski, iklam, dholmes
  • Loading branch information
stefank committed Feb 21, 2023
1 parent 622f560 commit fef1910
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
3 changes: 2 additions & 1 deletion test/hotspot/jtreg/runtime/NMT/BaselineWithParameter.java
Expand Up @@ -46,7 +46,8 @@ public static void main(String args[]) throws Exception {

// Run 'jcmd <pid> VM.native_memory baseline=false'
pb.command(new String[] { JDKToolFinder.getJDKTool("jcmd"), pid, "VM.native_memory", "baseline=false"});
pb.start().waitFor();
output = new OutputAnalyzer(pb.start());
output.shouldContain("Total: reserved");

// Run 'jcmd <pid> VM.native_memory summary=false'
pb.command(new String[] { JDKToolFinder.getJDKTool("jcmd"), pid, "VM.native_memory", "summary=false"});
Expand Down
1 change: 0 additions & 1 deletion test/hotspot/jtreg/runtime/NMT/JcmdDetailDiff.java
Expand Up @@ -54,7 +54,6 @@ public static void main(String args[]) throws Exception {

// Run 'jcmd <pid> VM.native_memory baseline=true'
pb.command(new String[] { JDKToolFinder.getJDKTool("jcmd"), pid, "VM.native_memory", "baseline=true"});
pb.start().waitFor();

output = new OutputAnalyzer(pb.start());
output.shouldContain("Baseline taken");
Expand Down
3 changes: 1 addition & 2 deletions test/hotspot/jtreg/runtime/NMT/JcmdSummaryClass.java
Expand Up @@ -48,11 +48,10 @@ public static void main(String args[]) throws Exception {

// Run 'jcmd <pid> VM.native_memory baseline=true'
pb.command(new String[] { JDKToolFinder.getJDKTool("jcmd"), pid, "VM.native_memory"});
pb.start().waitFor();
output = new OutputAnalyzer(pb.start());

String classes_line = "classes #\\d+";
String instance_array_classes_line = "instance classes #\\d+, array classes #\\d+";
output = new OutputAnalyzer(pb.start());
output.shouldMatch(classes_line);
output.shouldMatch(instance_array_classes_line);
}
Expand Down
1 change: 0 additions & 1 deletion test/hotspot/jtreg/runtime/NMT/JcmdSummaryDiff.java
Expand Up @@ -54,7 +54,6 @@ public static void main(String args[]) throws Exception {

// Run 'jcmd <pid> VM.native_memory baseline=true'
pb.command(new String[] { JDKToolFinder.getJDKTool("jcmd"), pid, "VM.native_memory", "baseline=true"});
pb.start().waitFor();

output = new OutputAnalyzer(pb.start());
output.shouldContain("Baseline taken");
Expand Down

1 comment on commit fef1910

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.