~/talk

Garbage collection for the humans

Talkat Build Stuff 2019 · 2019-11-13..11-15· [java]
links:none on file
slides:none on file

Survey of JVM garbage collectors with concrete tradeoffs: mark‑and‑sweep and generational layout (Eden/survivor/old) explain promotion and premature promotion, Serial/Parallel stop‑the‑world behavior contrasts with CMS (deprecated), G1 (compacts regions, G1 prioritizes dirtiest regions) and the low‑pause contenders Shenandoah and ZGC (Shenandoah is described as almost fully concurrent). Practical tips include analyzing GC logs (GC Easy, JClarity) and avoiding large static arrays, large boxed primitives and unbounded ArrayList growth.

AI-written summary · about

  1. 0:00Introduction and welcome
  2. 2:19Why garbage collection matters
  3. 5:11Garbage in computing and biology
  4. 6:55Manual vs automatic memory management
  5. 9:09History and purpose of garbage collection
  6. 10:55Performance vs productivity trade-off
  7. 16:27Designing a garbage collection system
  8. 18:31Serial garbage collector basics
  9. 20:16Memory fragmentation and compaction
  10. 21:25Evaluating garbage collection performance
  11. 23:15Memory layout in operating systems
  12. 24:43Stack and heap in Java
  13. 26:13Generational garbage collection
  14. 29:46Premature promotion and promotion failure
  15. 31:11Types of garbage collection events
  16. 32:16Evolution of garbage collectors
  17. 36:13Problems with generational collectors
  18. 36:58Garbage-First collector explained
  19. 39:28Concurrency challenges in GC
  20. 41:40Shenandoah and concurrent GC
  21. 42:23Zero and Epsilon garbage collectors
  22. 43:06Choosing the right garbage collector
  23. 44:10Tips and tricks for GC optimization
  24. 47:24Best practices for reducing garbage
  25. 49:31Static variables and memory leaks
  26. 50:18Tools for garbage collection analysis
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.