JetBrains Technology Day for Java – OpenJDK: In The New Age of Concurrent Garbage Collectors
On the 10th July 2020, JetBrains hosted a Technology Day for Java. We had 10 presentations and the videos for them are available here. Over the coming weeks, in no particular order, we’d like to share with you extra resources that our speakers kindly provided and any links to further reading or code samples.
We hosted Monica Beckwith talking to us about garbage collection in OpenJDK Hotspot. Java has always been very good at taking out the trash with garbage collection functionality integrated from the beginning, however, it has evolved! Monica took us through the various garbage collection algorithms as well as the design goals for each, before providing comparisons between them.
We learned the difference between the Stop The World Garbage Collection (STW) and Concurrent garbage collection approaches in Java and the different ways that garbage collectors slice up the heap, move objects around, and what the priorities can be when it comes to reclaiming space.
- Regionalised (with regards to the heap)
- Generational (with regards to the heap)
- Compaction (Stop the World versus Concurrent)
- Target pause times
- Concurrent marking algorithm
This side by side comparison was very useful to help us understand the bigger picture and differences at a higher level between the garbage collectors that are available to us. Monica then took us through a technical deep-dive on the various criteria for each garbage collector as well as some examples.
What our audience thought of Monica’s presentation
I am just catching up on some #JBTechDayforJava sessions that I missed. Thanks @mon_beck for the great session on Java GC! This is an area I’ve known the least about. The details on each GC type and comparison of them helps so much. Thank you! https://t.co/xQ51dzaYpB
— Dan Torrey (@danotorrey) July 12, 2020
Amazing presentation @mon_beck @eMalaGupta
“new #ZGC and #ShenandoahGC garbage collectors (GCs) in @OpenJDK HotSpot VM. She’ll also compare them to G1 GC (the current default GC).”#JBTechDayforJava #JetBrainsLovesJava #Java #JavaBaires #JavaBsAs #JavaProgrammers pic.twitter.com/0OTGnlAmpe
— C:\Users\Mauri\Java (@MauriDeveloper) July 10, 2020
@mon_beck is my go-to-person when it comes to learning about Garbage collection in Java.
She nailed this presentation comparing multiple Concurrent Garbage collectors! https://t.co/QER26toioE
— Mala Gupta (@eMalaGupta) August 10, 2020
Subscribe to Blog updates
Thanks, we've got you!
Java Annotated Monthly – December 2023
The December edition of Java Annotated Monthly is here! As usual, you’ll find all the latest Java and Kotlin updates as well as details of key industry events for networking and learning. This issue also features the latest release candidates and targeted JEPs alongside Java tutorials and articles a…
String Templates in Java – why should you care?
TLDR; The existing String concatenation options are difficult to work with and could be error prone. String Templates (a preview feature introduced in Java 21) greatly improves how we create strings in Java by merging constant strings with variable values. The name of this feature pretty much says …
Java Annotated Monthly – November 2023
Welcome to the Java Annotated Monthly – November 2023! As the Java world keeps on spinning, we've gathered a treasure trove of articles, talks, and insights to warm your Java developers’ hearts. This month's edition features a delightful blend of the latest technological advancements and the ever…
Java Annotated Monthly – September 2023
The September edition of Java Annotated Monthly is here! With this month’s release of Java 21 approaching, we're excited to bring you a final sneak peek into its crucial features. But that's not all! This edition is packed with helpful articles about cutting-edge AI technologies, including update…