Points of Contact: Java & GC
summary
Explains how Java applications interact with the garbage collector: mechanisms that implement Stop-the-World (STW), the concepts of safepoints and checkpoints, which threads are stopped vs allowed to run, how GC discovers objects, and how application threads observe GC-made changes. Then covers concurrent GC barriers: what barriers are, how they are injected into code (example from the interpreter), detailed examples of read and pre-write barriers used for concurrent marking, JVM developers’ optimizations such as colored pointers and self-healing, and a comparison of STW versus concurrent approaches.
AI-written summary · about
chapters (6)
- 0:00Introduction
- 1:23Java and garbage collector
- 17:10Barriers in concurrent mode
- 31:45Barrier costs and optimizations
- 40:29Stop-the-world vs concurrent GC
- 43:40Q&A
related talks
54mGarbage Collection, State of the Art
01mThe evolution of Garbage Collection Algorithms in Java
01h 32mUnderstanding Java Garbage Collection and what you can do about it
50mTrash Talk - Exploring the JVM memory management
01h 01mOpenJDK: In the new age of Concurrent Garbage Collectors
52mGarbage collection for the humans
46mTrash Talk - Exploring the Memory Management in the JVM
51mTrash Talk - Exploring the JVM memory management
