src/hotspot/share/jfr/jni/jfrJavaSupport.cpp
changeset 50388 55fac6146d31
parent 50113 caf115bb98ad
child 51467 12997ebbc0d8
equal deleted inserted replaced
50387:3b52a76c7902 50388:55fac6146d31
   582   return Modules::is_package_defined(pkg_sym, Handle(), t);
   582   return Modules::is_package_defined(pkg_sym, Handle(), t);
   583 }
   583 }
   584 
   584 
   585 static void print_module_resolution_error(outputStream* stream) {
   585 static void print_module_resolution_error(outputStream* stream) {
   586   assert(stream != NULL, "invariant");
   586   assert(stream != NULL, "invariant");
   587   stream->print_cr("%s not found.", JDK_JFR_MODULE_NAME);
   587   stream->print_cr("Module %s not found.", JDK_JFR_MODULE_NAME);
   588   stream->print_cr("Flight Recorder can not be enabled.");
   588   stream->print_cr("Flight Recorder can not be enabled.");
   589   stream->print_cr("To use Flight Recorder, you might need to add" \
       
   590     " \"--add-modules %s\" to the VM command-line options.", JDK_JFR_MODULE_NAME);
       
   591 }
   589 }
   592 
   590 
   593 bool JfrJavaSupport::is_jdk_jfr_module_available() {
   591 bool JfrJavaSupport::is_jdk_jfr_module_available() {
   594   return is_jdk_jfr_module_in_readability_graph();
   592   return is_jdk_jfr_module_in_readability_graph();
   595 }
   593 }