What is the difference between `ZGC` and `Shenandoah` garbage collectors?

Java Professional Hard

Java Professional — Hard

What is the difference between `ZGC` and `Shenandoah` garbage collectors?

Key points

  • ZGC and Shenandoah are both low-latency collectors
  • ZGC uses load barriers and relocation concurrently
  • Shenandoah uses read/write barriers and concurrent compaction
  • Both target sub-millisecond pause times

Ready to go further?

Related questions