Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b4VQVEJWetTT1dYzyJ
8 lines
356 B
Plaintext
8 lines
356 B
Plaintext
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
|