src/hotspot/share/jfr/jni/jfrJavaSupport.cpp
changeset 54847 59ea39bb2809
parent 53418 bc2bb4eee477
child 55302 686dedba1d9a
child 57360 5d043a159d5c
equal deleted inserted replaced
54846:e4049522b074 54847:59ea39bb2809
   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");