equal
deleted
inserted
replaced
577 const char* const JDK_JFR_PACKAGE_NAME = "jdk/jfr"; |
577 const char* const JDK_JFR_PACKAGE_NAME = "jdk/jfr"; |
578 |
578 |
579 static bool is_jdk_jfr_module_in_readability_graph() { |
579 static bool is_jdk_jfr_module_in_readability_graph() { |
580 Thread* const t = Thread::current(); |
580 Thread* const t = Thread::current(); |
581 // take one of the packages in the module to be located and query for its definition. |
581 // take one of the packages in the module to be located and query for its definition. |
582 TempNewSymbol pkg_sym = SymbolTable::new_symbol(JDK_JFR_PACKAGE_NAME, t); |
582 TempNewSymbol pkg_sym = SymbolTable::new_symbol(JDK_JFR_PACKAGE_NAME); |
583 return Modules::is_package_defined(pkg_sym, Handle(), t); |
583 return Modules::is_package_defined(pkg_sym, Handle(), t); |
584 } |
584 } |
585 |
585 |
586 static void print_module_resolution_error(outputStream* stream) { |
586 static void print_module_resolution_error(outputStream* stream) { |
587 assert(stream != NULL, "invariant"); |
587 assert(stream != NULL, "invariant"); |