# G1 Becomes the Default GC in JDK 27

Original title: JDK 27 G1/Parallel/Serial GC Changes

> Hacker News story 49289101 · language: en · submitted 2026-08-13
> Web version: https://zeli.app/story/49289101
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 66 · by [0x54MUR41](<https://news.ycombinator.com/user?id=0x54MUR41>) · 💬 30
[original](<https://tschatzl.github.io/2026/08/10/jdk27-g1-serial-parallel-gc-changes.html>) · [HN discussion](<https://news.ycombinator.com/item?id=49289101>)

## Summary

JDK 27 brings G1 as the default garbage collector across all environments, ending Serial GC's default status. The release includes over 350 GC changes, many focused on refactoring and bug fixes. Key improvements include better heap sizing after Full GC, adaptive concurrent marking, and fixes for humongous object reclamation. Parallel GC sees fixes to tenuring and heap expansion, while TLAB sizing and string deduplication logging improve across all collectors.

## Key quote

> We thought that G1 fit the bill of a default collector nicely, and selecting something else depending on arcane environmental conditions was more of a burden than an advantage.

## HN discussion (30 comments)

### [exabrial](<https://news.ycombinator.com/item?id=49302991>)

> Huge thanks to the OpenJDK Team! I still can't believe we are finding incredible improvements. The JVM is an engineering marvel

### [kasperni](<https://news.ycombinator.com/item?id=49290419>)

> Are people still dealing with GC issues?
>
> I find that it basically just more or less works out of the box on modern JVMs.

### [smallnix](<https://news.ycombinator.com/item?id=49290324>)

> \> selecting something else depending on arcane environmental conditions was more of a burden than an advantage
>
> What is being referred to here? Does "else" refer to ZGC, Shenandoah?
>
> What does arcane env conditions mean?

### [Traubenfuchs](<https://news.ycombinator.com/item?id=49296291>)

> If any JDK wizard is present:
>
> In my opinion, the thing the JRE is REALLY missing is a single process level memory limit setting.
>
> Nowadays you still have to consider the off heap memory when limiting a JRE processes max memory.
>
> To clarify: -XX:MaxRAMPercentage should not exist. Instead the process should be told: „You can use x mb/gb of memory. Use of that what you need for offheap and use the rest for heap.“
>
> That setting is embarassing. Figuring out its value is a mixture of voodoo, vibe-driven guessing and playing the game of „how much wasted memory do you want to risk to prevent a crash?“.
>
> Give us -XX:MaxProcessMemory=4g please. Why doesn‘t this exist?

### [stmw](<https://news.ycombinator.com/item?id=49290745>)

> GC's haven't freed us from manual memory management, you just do all that manual work with environment variables, or making sure to "pick the right collector for the job", or debugging performance or heap size issues, or chasing down weak references or confused finalizers.

---

## Cite

- Page: https://zeli.app/story/49289101
- Date: 2026-08-13
- Source: tschatzl.github.io (https://tschatzl.github.io/2026/08/10/jdk27-g1-serial-parallel-gc-changes.html)
- Hacker News: https://news.ycombinator.com/item?id=49289101

## Other languages

- zh: https://zeli.app/zh/story/49289101 · markdown: https://zeli.app/zh/story/49289101.md
- es: https://zeli.app/es/story/49289101 · markdown: https://zeli.app/es/story/49289101.md
