SATB Garbage Collection and Tri-Color Marking in Java
SATB garbage collection explained: tri-color marking, the lost-object problem, and why G1 and Shenandoah keep garbage that dies mid-cycle. Lab included.
SATB garbage collection explained: tri-color marking, the lost-object problem, and why G1 and Shenandoah keep garbage that dies mid-cycle. Lab included.
Follow one object from Eden to Old Gen. Object promotion in Java hinges on an age table, not MaxTenuringThreshold, and survivor overflow can change it.
Long GC pauses in Java often aren't the collector's fault. Tell CPU throttling, swap, evacuation failure and reference processing apart using the GC log.
A GC log said 11.9 ms; my app froze for 1.5 s. How a JVM safepoint works, why one thread can stall them all, and what your collector changes.
Heap is 4 GB, the process uses 7 GB. Where JVM native memory goes (stacks, direct buffers, code cache, Metaspace) and how NMT baseline and diff find it.
Java VerifyError after an agent or library upgrade? How the JVM bytecode verifier works, what StackMapTable frames do, and why -Xverify:none is no fix.
What's in a Java object header? Mark word, class pointer and padding, measured with Unsafe on JDK 21, plus what compact headers change in JDK 25.
Set up java GC logs with -Xlog the right way, then read every line it prints: G1 and ZGC pause lines, phases, heap before and after, rotation, and analysers.
How does a young GC skip the whole of Old Gen? Card tables, write barriers and the G1 remembered set, measured on JDK 21, plus what JEP 522 changes in JDK 26.
Minor GC vs full GC is clear. 'Major GC' isn't, and it means different things per collector. What each pause collects, what triggers it, and how to read it.