Articles tagged with #JVM
A curated list of engineering series, deep dives, and notes related to #JVM.
High-Performance Java: How EnumSet and EnumMap Achieve Zero-Allocation Speed
Discover why EnumSet and EnumMap are the fastest collections in Java. Learn how 64-bit long bitmasks execute set operations in 1 CPU cycle.
Java Concurrent Collections: CopyOnWriteArrayList vs Unmodifiable vs List.of()
Compare Fail-Fast vs Fail-Safe collections in Java. Learn CopyOnWriteArrayList memory mechanics and the difference between List.of() and unmodifiable wrappers.
Component Scanning Mechanics: Annotations, Metadata Readers, and ASM Bytecode Parsing
Master Spring component scanning: ClassPathBeanDefinitionScanner, ASM bytecode parsing, MetadataReader, and BeanDefinition registration without classloading.
Java Iterator and modCount: How Fail-Fast Iteration Prevents Data Corruption
Explore how Java iterators use modCount to throw ConcurrentModificationException and prevent silent data corruption during list traversal.
Java equals() and hashCode() Contract: Avoiding Silent HashMap Bugs
Learn the unbreakable contract between equals() and hashCode() in Java to prevent silent HashMap lookup bugs and memory leaks.
Java Reflection Under the Hood: Classloading, Instantiation, and Metadata Inspection
Master Java Reflection: Class.forName(), getDeclaredConstructor(), setAccessible(true), annotation inspection, and ReflectionUtils performance.
Java Memory Model Explained: Stack vs Heap Allocation for Arrays
Understand how the JVM allocates memory on the stack and heap when declaring primitive and object reference arrays in Java.