equal
deleted
inserted
replaced
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 } |