G1 becomes the JVM's default garbage collector in every environment
The G1 Garbage Collector

G1, the Garbage-First collector, has been the default on server-class JVMs since JDK 9, but JDK 27's JEP 523 makes it the default everywhere, even on a single CPU with under 2 GB of memory. Originally built to replace CMS for large multi-core machines, G1 balances throughput against pause time and reclaims the regions holding the most garbage first. The article traces its history, heap layout, and collection cycle, and explains why tuning usually means trading one goal for another.
This is what "Garbage-First" in the G1 name refers to: it will reclaim the regions with the most garbage first.