Add lru-cache module: LinkedHashMap and hand-rolled DLL LRU, coarse-lock/striped thread-safe variants, broken ReadWriteLock demo, Caffeine reference, 43 tests, JMH harness
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b4VQVEJWetTT1dYzyJ
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
In access-order mode get() is a structural modification (single thread, no concurrency)
|
||||
=======================================================================================
|
||||
|
||||
for (Integer k : accessOrderMap.keySet()) accessOrderMap.get(k);
|
||||
-> java.util.ConcurrentModificationException
|
||||
|
||||
same loop on an insertion-order LinkedHashMap -> completes normally
|
||||
Reference in New Issue
Block a user