Benoît
01/31/2019, 4:31 PMhudsonb
01/31/2019, 4:43 PM===
)Dico
01/31/2019, 4:44 PMWeakReference
doesn't implement equals/hashCode, you should be able to extend it to do that, which should allow you to actually take advantage of the hash table performance.Dico
01/31/2019, 4:45 PMcbruegg
01/31/2019, 4:45 PMremoveWhen
, I believe you're iterating over all entries of the map. The same applies to your getRef
method. Also even though you're using a ConcurrentHashMap
, I'm not entirely sure whether this is thread-safe.hudsonb
01/31/2019, 4:46 PMhudsonb
01/31/2019, 4:48 PMBenoît
01/31/2019, 4:49 PMBenoît
01/31/2019, 4:50 PMBenoît
01/31/2019, 4:52 PMDico
01/31/2019, 5:03 PMBenoît
01/31/2019, 5:04 PMcbruegg
01/31/2019, 5:05 PMcbruegg
01/31/2019, 5:05 PMBenoît
01/31/2019, 5:05 PMcbruegg
01/31/2019, 5:05 PMjoseph_ivie
01/31/2019, 5:06 PMBenoît
01/31/2019, 5:08 PMBenoît
01/31/2019, 5:10 PMjoseph_ivie
01/31/2019, 6:33 PM