Skip to content

Commit

Permalink
8272318: Improve performance of HeapDumpAllTest
Browse files Browse the repository at this point in the history
Backport-of: 73da66ffb707abf6dc38368a12e337d52597de25
  • Loading branch information
shipilev committed Sep 20, 2021
1 parent 3a650aa commit cd1d3e0
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/hotspot/jtreg/serviceability/dcmd/gc/HeapDumpAllTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@
* questions.
*/

import java.io.IOException;

import jdk.test.lib.dcmd.CommandExecutor;

/*
* @test
* @summary Test of diagnostic command GC.heap_dump -all=true
Expand All @@ -37,6 +41,14 @@ public HeapDumpAllTest() {
heapDumpArgs = "-all=true";
}

@Override
public void run(CommandExecutor executor, boolean overwrite) throws IOException {
// Trigger gc by hand, so the created heap dump isnt't too large and
// takes too long to parse.
System.gc();
super.run(executor, overwrite);
}

/* See HeapDumpTest for test cases */
}

1 comment on commit cd1d3e0

@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.