JVM Safepoints Explained: What Stop-the-World Really Means
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.
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.
Class loading, linking and initialization in the JVM, step by step: when static blocks run, why constants skip init, and what Could not initialize class means.
Filter a Java stack trace without hiding the bug: what reflection, proxy and interceptor frames mean, InvocationTargetException decoded, and how to cut noise.
StackWalker Java (9+) walks the call stack lazily, so you pay for the frames you read. How it works, its three options, and how it compares to getStackTrace.
How ZGC keeps pauses near zero on big heaps: colored pointers, load barriers, concurrent relocation, allocation stalls, and what generational ZGC changed.
GC roots decide what the JVM keeps alive. Thread stacks, statics, JNI handles and references, measured on JDK 21, plus the JIT surprise that frees a live local.
A lambda$main$0 stack trace, access$000, <init>, $Proxy0: what odd frame names in a Java stack trace mean, where javac puts them, and how to read past them.