--- old/src/java.base/share/classes/jdk/internal/loader/BootLoader.java 2016-04-08 10:43:27.454659357 +0200 +++ new/src/java.base/share/classes/jdk/internal/loader/BootLoader.java 2016-04-08 10:43:27.354658804 +0200 @@ -39,6 +39,7 @@ import java.util.Arrays; import java.util.Enumeration; import java.util.Optional; +import java.util.concurrent.ConcurrentHashMap; import java.util.jar.JarInputStream; import java.util.jar.Manifest; import java.util.stream.Stream; @@ -68,6 +69,10 @@ // ServiceCatalog for the boot class loader private static final ServicesCatalog SERVICES_CATALOG = new ServicesCatalog(); + // ClassLoaderValue map for boot class loader + private static final ConcurrentHashMap CLASS_LOADER_VALUE_MAP = + new ConcurrentHashMap<>(); + /** * Returns the unnamed module for the boot loader. */ @@ -83,6 +88,13 @@ } /** + * Returns the ClassLoaderValue map for the boot class loader. + */ + public static ConcurrentHashMap getClassLoaderValueMap() { + return CLASS_LOADER_VALUE_MAP; + } + + /** * Register a module with this class loader so that its classes (and * resources) become visible via this class loader. */