--- old/test/jdk/jdk/jfr/jvm/TestDumpOnCrash.java 2019-01-18 16:22:17.733042623 +0900 +++ new/test/jdk/jdk/jfr/jvm/TestDumpOnCrash.java 2019-01-18 16:22:17.532044459 +0900 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -61,17 +61,19 @@ } public static void main(String[] args) throws Exception { - processOutput(runProcess()); + processOutput(runProcess(true)); + processOutput(runProcess(false)); } - private static OutputAnalyzer runProcess() throws Exception { + private static OutputAnalyzer runProcess(boolean diskRepo) throws Exception { + String flightRecordingOptions = "dumponexit=true,disk=" + Boolean.toString(diskRepo); return new OutputAnalyzer( ProcessTools.createJavaProcessBuilder(true, "-Xmx64m", "-Xint", "-XX:-CreateCoredumpOnCrash", "--add-exports=java.base/jdk.internal.misc=ALL-UNNAMED", - "-XX:StartFlightRecording=dumponexit=true", + "-XX:StartFlightRecording=" + flightRecordingOptions, Crasher.class.getName()).start()); }