diff -r 038f2064e729 -r 1be281ee5de4 hotspot/src/share/vm/classfile/modules.cpp --- 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",