8272318: Improve performance of HeapDumpAllTest
Reviewed-by: lucy, sspitsyn
This commit is contained in:
parent
96107e31df
commit
73da66ffb7
@ -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
|
||||
@ -37,5 +41,13 @@ public class HeapDumpAllTest extends HeapDumpTest {
|
||||
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 */
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user