hotspot/src/share/vm/classfile/modules.cpp
changeset 41691 1be281ee5de4
parent 41183 207b92e69457
child 42307 cefc81dc1d52
child 42636 aafc434ba580
equal deleted inserted replaced
41690:038f2064e729 41691:1be281ee5de4
   242   if (duplicate_javabase) {
   242   if (duplicate_javabase) {
   243     THROW_MSG(vmSymbols::java_lang_IllegalArgumentException(),
   243     THROW_MSG(vmSymbols::java_lang_IllegalArgumentException(),
   244               "Module java.base is already defined");
   244               "Module java.base is already defined");
   245   }
   245   }
   246 
   246 
       
   247   // Only the thread that actually defined the base module will get here,
       
   248   // so no locking is needed.
       
   249 
       
   250   // Patch any previously loaded class's module field with java.base's java.lang.reflect.Module.
       
   251   ModuleEntryTable::patch_javabase_entries(module_handle);
       
   252 
   247   log_debug(modules)("define_javabase_module(): Definition of module: java.base,"
   253   log_debug(modules)("define_javabase_module(): Definition of module: java.base,"
   248                      " version: %s, location: %s, package #: %d",
   254                      " version: %s, location: %s, package #: %d",
   249                      module_version != NULL ? module_version : "NULL",
   255                      module_version != NULL ? module_version : "NULL",
   250                      module_location != NULL ? module_location : "NULL",
   256                      module_location != NULL ? module_location : "NULL",
   251                      pkg_list->length());
   257                      pkg_list->length());