Files
java-interview-lab/hashmap-vs-concurrenthashmap/output/06-recursive-update.txt
T

8 lines
566 B
Plaintext

computeIfAbsent called from inside its own mapping function (single thread)
===========================================================================
HashMap, inner key in a different bin: threw java.util.ConcurrentModificationException
ConcurrentHashMap, inner key in a different bin: no exception, size=2
ConcurrentHashMap, inner key, same bin (bin was empty): threw java.lang.IllegalStateException: Recursive update
ConcurrentHashMap, inner key, same bin (bin had a node): threw java.lang.IllegalStateException: Recursive update