We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7627023 commit 78e18d4Copy full SHA for 78e18d4
test/hotspot/jtreg/serviceability/dcmd/gc/HeapDumpAllTest.java
@@ -21,6 +21,10 @@
21
* questions.
22
*/
23
24
+import java.io.IOException;
25
+
26
+import jdk.test.lib.dcmd.CommandExecutor;
27
28
/*
29
* @test
30
* @summary Test of diagnostic command GC.heap_dump -all=true
@@ -37,6 +41,14 @@ public HeapDumpAllTest() {
37
41
heapDumpArgs = "-all=true";
38
42
}
39
43
44
+ @Override
45
+ public void run(CommandExecutor executor, boolean overwrite) throws IOException {
46
+ // Trigger gc by hand, so the created heap dump isnt't too large and
47
+ // takes too long to parse.
48
+ System.gc();
49
+ super.run(executor, overwrite);
50
+ }
51
40
52
/* See HeapDumpTest for test cases */
53
54
0 commit comments