[concurrency-interest] ConcurrentHashMap footprint and contention improvements

Doug Lea dl at cs.oswego.edu
Fri Apr 15 06:29:21 EDT 2011

On 04/14/11 21:13, Martin Buchholz wrote:
> I'm looking at the latest CHM.containsValue.
> Suppose the first traversal over the segments discovers no entries
> (map apparently empty).  The intent appears to be to retry,

Right; thanks! This exit check should read:

diff -r1.102 ConcurrentHashMap.java
<                 if (sum == last)
 >                 if (retries > 0 && sum == last)


More information about the Concurrency-interest mailing list