On Fri, 4 Dec 2020 20:05:23 GMT, Kevin Rushforth <k...@openjdk.org> wrote:
>> This patch replaces some uses of `Reference::get` to `Reference::refersTo` >> to avoid keeping a referent strongly reachable that could cause unnecessary >> delay in collecting such object. I only made change in some but not all >> classes in core libraries when working with Kim on `Reference::refersTo`. >> The remaining uses are left for the component owners to convert at >> appropriate time. > > src/java.base/share/classes/java/util/WeakHashMap.java line 437: > >> 435: int index = indexFor(h, tab.length); >> 436: Entry<K,V> e = tab[index]; >> 437: while (e != null && !(e.hash == h && matchesKey(e, k)) > > This doesn't compile, which is why the checks from the GitHub actions build > failed. I caught that and it's in my local repo that I haven't pushed the commit. Sorry for not syncing my branch for review. ------------- PR: https://git.openjdk.java.net/jdk/pull/1609