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 @@
|
||||
8 threads x 20000 increments of one key: the atomic forms are exact on every run
|
||||
================================================================================
|
||||
|
||||
expected: 160000
|
||||
ConcurrentHashMap.merge 160000
|
||||
ConcurrentHashMap.compute 160000
|
||||
HashMap + synchronized(map) around merge 160000
|
||||
Reference in New Issue
Block a user