Add hashmap-vs-concurrenthashmap module: JDK 25 sizeCtl/treeify internals, forced and measured lost updates
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b7rnC7jppGGdHGESvy
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
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
|
||||
Reference in New Issue
Block a user