Java's G1 Garbage Collector

Java's G1 Garbage Collector

20.469 Lượt nghe
Java's G1 Garbage Collector
The G1 Garbage Collector, Java's default garbage collector, is a fascinating piece of technology with a long history. In this episode of Stack Walker we take a deep dive of the G1 garbage collector to understand it's key architectural features that allow it to meet its performance goals. We will also take a look at how to use G1, and a brief look into G1's future. -- Chapters -- 0:00 Intro 1:42 G1's History 3:15 Limitations of Existing GCs 4:12 G1's Design 4:34 Generational 5:54 Incremental 8:06 remembered Sets 9:45 Write Barriers 11:54 Parallel & Concurrent 17:51 Stop the World & Evacuating 21:16 Using G1 22:25 Tuning G1 23:54 Future of G1 25:03 Conclusions -- Resources -- Thomas Schatzl's Blog ➱ https://tschatzl.github.io/ Concurrent Marking in G1 ➱ https://tschatzl.github.io/2022/08/04/concurrent-marking.html HotSpot VM Tuning Guide ➱ https://docs.oracle.com/en/java/javase/21/gctuning/garbage-first-garbage-collector-tuning.html Throughput Barrier Exploration for the Garbage-First Collector ➱ https://ssw.jku.at/Teaching/MasterTheses/Protopopovs/Thesis.pdf Garbage-First White Paper ➱ http://cs.williams.edu/~dbarowy/cs334s18/assets/p37-detlefs.pdf JEP 423 ➱ https://openjdk.org/jeps/423 Dev.java ➱ https://dev.java Inside.java ➱ https://inside.java Tags: #Java #GC #Performance #OpenJDK #JDK #JVM #InsideJava