--- old/test/hotspot/jtreg/runtime/appcds/CDSandJFR.java 2018-06-19 09:43:34.104523664 -0700 +++ new/test/hotspot/jtreg/runtime/appcds/CDSandJFR.java 2018-06-19 09:43:33.792494235 -0700 @@ -74,5 +74,16 @@ TestCommon.checkExec(TestCommon.exec(appJar, "-XX:FlightRecorderOptions=retransform=false", "GetFlightRecorder")); + + // Test dumping with flight recorder enabled. + output = TestCommon.testDump(appJar, TestCommon.list(classes), + "-XX:StartFlightRecording=dumponexit=true"); + TestCommon.checkDump(output, "Skipping JFR event class jdk/jfr/"); + TestCommon.checkDump(output, "Skipping redefined class"); + // Test running with the archive generated with flight recorder enabled. + output = TestCommon.exec(appJar, + "-XX:StartFlightRecording=dumponexit=true", + "Hello"); + TestCommon.checkExec(output, "Hello World"); } }