[concurrency-interest] ConcurrentHashMap computeIfAbsent
peter.levart at gmail.com
Sun Dec 21 14:55:58 EST 2014
On 12/21/2014 08:33 PM, Peter Levart wrote:
> Here's to illustrate what I mean:
> Changes I did are purely mechanical.
Sorry, changes I did to code at last moment were not correct. This is
what I had before and was correct:
The node.checkNotEntered() must be called before synchronized block,
since it contains a check for Thread.holdsLock(). node.enter() does not
contain a check, so checkNotEntered() must be called before synchronized
blocks that call-back user code too (where necessary).
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Concurrency-interest