hotspot/src/share/vm/classfile/modules.cpp
changeset 41691 1be281ee5de4
parent 41183 207b92e69457
child 42307 cefc81dc1d52
child 42636 aafc434ba580
--- a/hotspot/src/share/vm/classfile/modules.cpp	Fri Oct 07 15:40:34 2016 -0700
+++ b/hotspot/src/share/vm/classfile/modules.cpp	Mon Oct 10 08:34:32 2016 -0400
@@ -244,6 +244,12 @@
               "Module java.base is already defined");
   }
 
+  // Only the thread that actually defined the base module will get here,
+  // so no locking is needed.
+
+  // Patch any previously loaded class's module field with java.base's java.lang.reflect.Module.
+  ModuleEntryTable::patch_javabase_entries(module_handle);
+
   log_debug(modules)("define_javabase_module(): Definition of module: java.base,"
                      " version: %s, location: %s, package #: %d",
                      module_version != NULL ? module_version : "NULL",