Skip to content

Stay curious. Build better.

Appearance

Choose how BestHub looks on this device.

Changes apply immediately.

Search articles

Open Discover with these filters

Suggested searches

Dabaoshi

Author

Dabaoshi

Follow or choose interest

Practical utilities

50 public articles

307 article views

Interactions are cumulative records on this author's public articles, not unique people or profile visits.

Works

50 public articles · 50 articles in the current works window · 10 on this page

Works are ordered by publication date, newest first. Public statistics and works are read separately.

JVM Concurrency Deep Dive: JMM and Low‑Level Synchronization

This article explains the three fundamental problems of Java concurrency—visibility, atomicity, and ordering—describes how the Java Memory Model and happens‑before rules address them, and details the low‑level implementations and optimizations of volatile, synchronized, lock upgrading, and the removal of biased locking in JDK 15‑17.

Understanding JVM GC Algorithms and the Generational Model

This article explains the three fundamental garbage‑collection algorithms (Mark‑Sweep, Copying, Mark‑Compact), the three generational hypotheses, the structure and rules of the young generation, the distinctions among Minor, Major and Full GCs, and how remembered sets and card tables efficiently handle cross‑generation references in the JVM.

How the JVM Allocates Objects and Arranges Their Memory Layout

This article walks through the JVM's six-step process for creating a new object, explains heap allocation strategies and thread‑local buffers, details escape analysis optimizations, reveals the exact memory layout of an object including header and padding, compares handle versus direct pointer access, and describes reachability‑based garbage collection with the four Java reference types.

JVM Compile‑Time Secrets: Syntactic Sugar and Method Dispatch

This article walks through how the Java compiler (javac) transforms source code into bytecode, revealing the hidden steps of syntactic‑sugar removal, generic type erasure, autoboxing pitfalls, foreach/varargs handling, the five invoke instructions, static versus dynamic method dispatch, and why Lambda expressions rely on invokedynamic rather than anonymous inner classes.