< prev index next >

src/hotspot/share/classfile/moduleEntry.cpp

Print this page

        

*** 258,268 **** // Ensure that the unnamed module was correctly set when the class loader was constructed. // Guarantee will cause a recognizable crash if the user code has circumvented calling the ClassLoader constructor. ResourceMark rm; guarantee(java_lang_Module::is_instance(module), "The unnamed module for ClassLoader %s, is null or not an instance of java.lang.Module. The class loader has not been initialized correctly.", ! cld->loader_name()); ModuleEntry* unnamed_module = new_unnamed_module_entry(Handle(Thread::current(), module), cld); // Store pointer to the ModuleEntry in the unnamed module's java.lang.Module object. java_lang_Module::set_module_entry(module, unnamed_module); --- 258,268 ---- // Ensure that the unnamed module was correctly set when the class loader was constructed. // Guarantee will cause a recognizable crash if the user code has circumvented calling the ClassLoader constructor. ResourceMark rm; guarantee(java_lang_Module::is_instance(module), "The unnamed module for ClassLoader %s, is null or not an instance of java.lang.Module. The class loader has not been initialized correctly.", ! cld->loader_name_and_id()); ModuleEntry* unnamed_module = new_unnamed_module_entry(Handle(Thread::current(), module), cld); // Store pointer to the ModuleEntry in the unnamed module's java.lang.Module object. java_lang_Module::set_module_entry(module, unnamed_module);
*** 520,530 **** ResourceMark rm; st->print_cr("entry " PTR_FORMAT " name %s module " PTR_FORMAT " loader %s version %s location %s strict %s next " PTR_FORMAT, p2i(this), name() == NULL ? UNNAMED_MODULE : name()->as_C_string(), p2i(module()), ! loader_data()->loader_name(), version() != NULL ? version()->as_C_string() : "NULL", location() != NULL ? location()->as_C_string() : "NULL", BOOL_TO_STR(!can_read_all_unnamed()), p2i(next())); } --- 520,530 ---- ResourceMark rm; st->print_cr("entry " PTR_FORMAT " name %s module " PTR_FORMAT " loader %s version %s location %s strict %s next " PTR_FORMAT, p2i(this), name() == NULL ? UNNAMED_MODULE : name()->as_C_string(), p2i(module()), ! loader_data()->loader_name_and_id(), version() != NULL ? version()->as_C_string() : "NULL", location() != NULL ? location()->as_C_string() : "NULL", BOOL_TO_STR(!can_read_all_unnamed()), p2i(next())); }
< prev index next >