Concurrent Hash Map javadoc question

David Holmes david.holmes at oracle.com
Tue Sep 17 22:47:29 UTC 2019


Re-directing to core-libs-dev mailing list.

David

On 18/09/2019 5:45 am, Keith Turner wrote:
> The javadoc for ConcurrentHashMap.computeIfAbsent() states the
> remapping function is applied at most once.  The functions
> computeIfPresent() and compute() do not explicitly state if the
> remapping functions could possibly be run multiple times. Does anyone
> know if computeIfPresent() and compute() are guaranteed to only run
> the remapping functions at most once?  If so, should the javadoc be
> updated?
> 
> Thanks,
> 
> Keith
> 


More information about the core-libs-dev mailing list