--- a/src/hotspot/share/jfr/recorder/jfrRecorder.cpp Mon Oct 07 15:52:38 2019 +0200
+++ b/src/hotspot/share/jfr/recorder/jfrRecorder.cpp Mon Oct 07 16:13:25 2019 +0200
@@ -168,7 +168,7 @@
static bool is_cds_dump_requested() {
// we will not be able to launch recordings if a cds dump is being requested
- if ((DumpSharedSpaces || DynamicDumpSharedSpaces) && (JfrOptionSet::startup_recording_options() != NULL)) {
+ if (Arguments::is_dumping_archive() && (JfrOptionSet::startup_recording_options() != NULL)) {
warning("JFR will be disabled during CDS dumping");
teardown_startup_support();
return true;