diff hotspot/src/share/vm/classfile/modules.cpp @ 46463:4bd2ca84df7a

8178604: JVM does not allow defining boot loader modules in exploded build after module system initialization Summary: Allow defining of boot loader modules after initialization but add locks to synchronize access to exploded build list Reviewed-by: dholmes, lfoltan
author hseigel
date Tue, 16 May 2017 09:33:49 -0400
parents 3c12af929e7d
children 388aa8d67c80
line wrap: on
line diff
--- a/hotspot/src/share/vm/classfile/modules.cpp	Mon May 15 09:40:23 2017 -0400
+++ b/hotspot/src/share/vm/classfile/modules.cpp	Tue May 16 09:33:49 2017 -0400
@@ -449,9 +449,8 @@
   }
 
   // If the module is defined to the boot loader and an exploded build is being
-  // used, prepend <java.home>/modules/modules_name, if it exists, to the system boot class path.
-  if (loader == NULL &&
-      !ClassLoader::has_jrt_entry()) {
+  // used, prepend <java.home>/modules/modules_name to the system boot class path.
+  if (loader == NULL && !ClassLoader::has_jrt_entry()) {
     ClassLoader::add_to_exploded_build_list(module_symbol, CHECK);
   }
 }