--- a/hotspot/src/share/vm/classfile/moduleEntry.cpp Fri Dec 02 11:07:27 2016 +0100
+++ b/hotspot/src/share/vm/classfile/moduleEntry.cpp Mon Dec 05 11:45:20 2016 -0500
@@ -301,6 +301,14 @@
entry->set_version(version);
entry->set_location(location);
+ if (ClassLoader::is_in_patch_mod_entries(name)) {
+ entry->set_is_patched();
+ if (log_is_enabled(Trace, modules, patch)) {
+ ResourceMark rm;
+ log_trace(modules, patch)("Marked module %s as patched from --patch-module", name->as_C_string());
+ }
+ }
+
TRACE_INIT_MODULE_ID(entry);
return entry;