ELSEIF
Your brief EB
362 stories from 101 feeds 294 clusters Refreshed 5 minutes ago next pull 20:36

TECH Signal 480

G1 becomes the default garbage collector in JDK 27 for all OpenJDK distributions

Illustration only Photo by Jonathan on Unsplash

In JDK 27, G1 is now the default garbage collector, heap resizing after full GC is disabled via MinHeapFreeRatio/MaxHeapFreeRatio defaults, and Parallel GC’s tenuring threshold can decrease as well as increase.

WHY IT MATTERS

This shift removes the need to manually choose a collector for most workloads, simplifying JVM tuning. The altered heap-sizing behavior prevents unnecessary growth-shrink cycles after full GC, and the more flexible tenuring threshold helps Parallel GC retain short-lived objects longer, improving throughput for allocation-heavy applications.

Written by elseif from the cluster below · every claim links back to a source

The three things worth knowing

01

G1 becomes the default garbage collector when no explicit collector is specified on the command line.

02

After a full GC, G1 no longer adjusts heap size using the MinHeapFreeRatio and MaxHeapFreeRatio flags, whose defaults are now 0% and 100%.

03

Parallel GC’s adaptive tenuring threshold can now decrease, allowing younger objects to stay longer in the young generation and reducing premature promotions.

THE CLUSTER

Same story, 1 feed.

ORDERED BY FIRST SEEN
tschatzl.github.io via Hacker News JDK 27 G1/Parallel/Serial GC Changes Open ↗