* Reproduce
```
bash configure --with-jvm-features=-jfr ...
make test TEST="runtime/cds/appcds/CommandLineFlagCombo.java"
```
* Symptom
```
STDERR:
stdout: [];
stderr: [OpenJDK 64-Bit Server VM warning: Option FlightRecorder was deprecated in version 13.0 and will likely be removed in a future release.
Unrecognized VM option 'FlightRecorder'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
]
```
* Fix
```
diff -r 5db99b3d6023 test/hotspot/jtreg/runtime/cds/appcds/CommandLineFlagCombo.java
--- a/test/hotspot/jtreg/runtime/cds/appcds/CommandLineFlagCombo.java Tue Nov 05 18:42:10 2019 -0500
+++ b/test/hotspot/jtreg/runtime/cds/appcds/CommandLineFlagCombo.java Wed Nov 06 10:30:45 2019 +0800
@@ -24,7 +24,7 @@
/*
* @test CommandLineFlagCombo
- * @requires vm.cds.archived.java.heap
+ * @requires vm.cds.archived.java.heap & vm.hasJFR
* @comment This test explicitly chooses the type of GC to be used by sub-processes. It may conflict with the GC type set
* via the -vmoptions command line option of JTREG. vm.gc==null will help the test case to discard the explicitly passed
* vm options.
```
```
bash configure --with-jvm-features=-jfr ...
make test TEST="runtime/cds/appcds/CommandLineFlagCombo.java"
```
* Symptom
```
STDERR:
stdout: [];
stderr: [OpenJDK 64-Bit Server VM warning: Option FlightRecorder was deprecated in version 13.0 and will likely be removed in a future release.
Unrecognized VM option 'FlightRecorder'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
]
```
* Fix
```
diff -r 5db99b3d6023 test/hotspot/jtreg/runtime/cds/appcds/CommandLineFlagCombo.java
--- a/test/hotspot/jtreg/runtime/cds/appcds/CommandLineFlagCombo.java Tue Nov 05 18:42:10 2019 -0500
+++ b/test/hotspot/jtreg/runtime/cds/appcds/CommandLineFlagCombo.java Wed Nov 06 10:30:45 2019 +0800
@@ -24,7 +24,7 @@
/*
* @test CommandLineFlagCombo
- * @requires vm.cds.archived.java.heap
+ * @requires vm.cds.archived.java.heap & vm.hasJFR
* @comment This test explicitly chooses the type of GC to be used by sub-processes. It may conflict with the GC type set
* via the -vmoptions command line option of JTREG. vm.gc==null will help the test case to discard the explicitly passed
* vm options.
```