test/hotspot/jtreg/runtime/appcds/CDSandJFR.java
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File
*** old/test/hotspot/jtreg/runtime/appcds/CDSandJFR.java	Tue Jun 19 09:43:34 2018
--- new/test/hotspot/jtreg/runtime/appcds/CDSandJFR.java	Tue Jun 19 09:43:33 2018

*** 72,78 **** --- 72,89 ---- "-XX:FlightRecorderOptions=retransform=true", "GetFlightRecorder")); 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"); } }

test/hotspot/jtreg/runtime/appcds/CDSandJFR.java
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File