Look how messy the implementation of Concurrent HashMap π
Next time a Java "expert" asks me to write extensible, abstracted, and verbose code; I am going to show him/her this snippet and have some fun π
Today, I spent a couple of hours going through Java's implementation of Concurrent HashMap. Definitely, not an easy code to go through.
Although the code is messy and difficult to comprehend, the comment surrounding the functions makes it a little easier to understand.
Ref: Implementation of ConcurrentHashMap -
github.com/openjdk/jdk/blob/β¦
I keep writing and sharing these engineering nuggets, so if you are keen on learning them, follow along.
Subscribe to my channel and check out my YT playlist on Concurrency where I have covered some really interesting topics and internals of well-known structures; many more to come.
subscribe -
youtube.com/c/ArpitBhayani
no fluff; just engineering.
#AsliEngineering #JavaInternals #ConcurrentDataStructures