src/share/classes/sun/rmi/server/WeakClassHashMap.java

Print this page

        

*** 44,55 **** * is effectively softly reachable through this map, which may delay * garbage collection of classes (see 4429536). **/ public abstract class WeakClassHashMap<V> { ! private Map<Class<?>,ValueCell<V>> internalMap = ! new WeakHashMap<Class<?>,ValueCell<V>>(); protected WeakClassHashMap() { } public V get(Class<?> remoteClass) { /* --- 44,54 ---- * is effectively softly reachable through this map, which may delay * garbage collection of classes (see 4429536). **/ public abstract class WeakClassHashMap<V> { ! private Map<Class<?>,ValueCell<V>> internalMap = new WeakHashMap<>(); protected WeakClassHashMap() { } public V get(Class<?> remoteClass) { /*