< prev index next >

src/java.base/share/classes/java/lang/ClassLoader.java

Print this page

        

*** 290,302 **** // created classes. private final ProtectionDomain defaultDomain = new ProtectionDomain(new CodeSource(null, (Certificate[]) null), null, this, null); - // The initiating protection domains for all classes loaded by this loader - private final Set<ProtectionDomain> domains; - // Invoked by the VM to record every loaded class with this loader. void addClass(Class<?> c) { classes.addElement(c); } --- 290,299 ----
*** 347,363 **** = SharedSecrets.getJavaLangReflectModuleAccess() .defineUnnamedModule(this); if (ParallelLoaders.isRegistered(this.getClass())) { parallelLockMap = new ConcurrentHashMap<>(); package2certs = new ConcurrentHashMap<>(); - domains = Collections.synchronizedSet(new HashSet<>()); assertionLock = new Object(); } else { // no finer-grained lock; lock on the classloader instance parallelLockMap = null; package2certs = new Hashtable<>(); - domains = new HashSet<>(); assertionLock = this; } } /** --- 344,358 ----
*** 638,648 **** return null; } }, new AccessControlContext(new ProtectionDomain[] {pd})); } } - domains.add(pd); } /** * Finds the class with the specified <a href="#name">binary name</a>. * This method should be overridden by class loader implementations that --- 633,642 ----
< prev index next >