8248475: Suppress unconditional warning "JFR will be disabled during CDS dumping"

Reviewed-by: redestad
This commit is contained in:
Markus Grönlund 2020-06-30 18:10:44 +02:00
parent 05dc2af21f
commit eb1bacc71b

@ -173,7 +173,7 @@ static void log_jdk_jfr_module_resolution_error(TRAPS) {
static bool is_cds_dump_requested() {
// we will not be able to launch recordings on startup if a cds dump is being requested
if (Arguments::is_dumping_archive()) {
if (Arguments::is_dumping_archive() && JfrOptionSet::start_flight_recording_options() != NULL) {
warning("JFR will be disabled during CDS dumping");
teardown_startup_support();
return true;