Tagged with "design"
The Concurrency Of ConcurrentHashMap
Java'sConcurrentHashMap is an excellent point of study when learning about Java's Memory Model. It employs numerous techniques to provide lock-free reads while still guaranteeing safe publication of objects. This article represents my attempt to take the magic out of the ConcurrentHashMap implementation. ... read more
    
Escape Analysis & Stack Allocated Objects
In 1999, a paper, Escape Analysis For Java was to appear in the ACM SIGPLAN Conference on Object-Oriented Programming Systems, Languages, and Applications. This paper outlined an algorithm to detect whether an object,O, escaped from the currently executed method, M, or current thread, T. This paper ... read more
    
Impact Of Local Variable Declaration Location
Does the location of a local variable's declaration result in performance changes of a method? For example, will aString variable, s, declared outside of a loop exhibit "better" performance than when declared inside a loop? In Java, looking at a class' bytecode explains, irrefutably, why the answer is ... read more