< prev index next >

src/hotspot/share/jfr/recorder/jfrRecorder.cpp

Print this page

        

@@ -166,11 +166,11 @@
   JfrJavaSupport::is_jdk_jfr_module_available(&stream, THREAD);
 }
 
 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;
   }
   return false;
< prev index next >