<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/java-27-reaches-ga-with-the-g1-garbage-collector-by-default-everywhere-w3rasd6pc" -->

---
title: Java 27 Reaches GA With The G1 Garbage Collector By...
description: Java 27 has reached general availability with the G1 garbage collector now enabled by default across all environments, replacing Serial GC even in constrained...
canonical: https://daily.dev/posts/java-27-reaches-ga-with-the-g1-garbage-collector-by-default-everywhere-w3rasd6pc
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Java 27 Reaches GA With The G1 Garbage Collector By Default Everywhere | daily.dev
og:description: Java 27 has reached general availability with the G1 garbage collector now enabled by default across all environments, replacing Serial GC even in constrained...
og:url: https://daily.dev/posts/java-27-reaches-ga-with-the-g1-garbage-collector-by-default-everywhere-w3rasd6pc
og:image: https://api.daily.dev/og/posts/W3RaSD6Pc.png
og:image:alt: Java 27 Reaches GA With The G1 Garbage Collector By Default Everywhere
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Java 27 Reaches GA With The G1 Garbage Collector By Default Everywhere

**[Phoronix](https://daily.dev/sources/phoronix)** · 2 min read · 0 upvotes · 0 comments

## Summary

Java 27 has reached general availability with the G1 garbage collector now enabled by default across all environments, replacing Serial GC even in constrained settings. Oracle's JEP 523 explains that G1 now matches Serial's throughput while retaining better latency thanks to incremental old-generation collection and reduced synchronization work from JEP 522. The release also brings compact object headers by default (shrinking headers from 96 to 64 bits), Post-Quantum Hybrid Key Exchange for TLS 1.3, a seventh preview of structured concurrency, a newest preview of lazy constants, and a new Vector API incubator.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.phoronix.com/news/OpenJDK-27-Java-27>

## Questions this post answers

### Does Java 27 use G1 garbage collector by default in all environments, including constrained ones?

Yes, Java 27 makes G1 the default garbage collector everywhere, including constrained environments where Serial was previously selected. JEP 523 states that G1 now matches Serial's throughput at all heap sizes, thanks to reduced synchronization from JEP 522, while retaining better latency and native memory usage now comparable to Serial's.

_Track JVM defaults like this on daily.dev before a garbage collector switch surprises you in production._

### What are compact object headers in Java 27 and what do they change?

Compact object headers are enabled by default in Java 27, reducing object header size from 96 bits down to 64 bits. This improves deployment density, enhances data locality, and reduces overall heap size. The feature has been considered stable since JDK 24, which is why it became the default in this release.

_Developers tuning JVM memory footprint follow changes like this via daily.dev._

### What new security and concurrency features does Java 27 include besides the garbage collector change?

Java 27 adds Post-Quantum Hybrid Key Exchange support for TLS 1.3, a newest preview of lazy constants, a seventh preview of structured concurrency, and a new incubator stage for the Vector API. These accompany the G1 default change and compact object headers as part of the general availability release.

_Java developers planning upgrades keep up with release-by-release changes through daily.dev._

## Similar posts on daily.dev

- [Java 27: What’s New?](https://daily.dev/posts/java-27-what-s-new--usmks8zda) · Foojay.io · 25 upvotes · 0 comments
- [OpenJDK News Roundup: Vector API, Compact Object Headers and G1GC as Default in JDK 27](https://daily.dev/posts/openjdk-news-roundup-vector-api-compact-object-headers-and-g1gc-as-default-in-jdk-27-l1yumodvb) · InfoQ · 0 upvotes · 0 comments
- [JEP targeted to JDK 27: 523: Make G1 the Default Garbage Collector in All Environments – Inside.java](https://daily.dev/posts/jep-targeted-to-jdk-27-523-make-g1-the-default-garbage-collector-in-all-environments-inside-java-iadewlhx5) · Inside Java · 2 upvotes · 0 comments

---

Tags: [#java](https://daily.dev/tags/java), [#jvm](https://daily.dev/tags/jvm)

[View this post on daily.dev](https://daily.dev/posts/java-27-reaches-ga-with-the-g1-garbage-collector-by-default-everywhere-w3rasd6pc)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Java 27 Reaches GA With The G1 Garbage Collector By Default Everywhere","url":"https://daily.dev/posts/java-27-reaches-ga-with-the-g1-garbage-collector-by-default-everywhere-w3rasd6pc","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/java-27-reaches-ga-with-the-g1-garbage-collector-by-default-everywhere-w3rasd6pc"},"datePublished":"2026-09-15T13:40:02.581Z","dateModified":"2026-09-16T03:26:40.473Z","description":"Java 27 has reached general availability with the G1 garbage collector now enabled by default across all environments, replacing Serial GC even in constrained...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/167cf2e81bf02063771c7da4fd07a130?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/167cf2e81bf02063771c7da4fd07a130?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Phoronix","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Phoronix","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/6a26ba379dd64932830aa0c9803dd7ee","url":"https://daily.dev/sources/phoronix"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/java-27-reaches-ga-with-the-g1-garbage-collector-by-default-everywhere-w3rasd6pc","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"java,jvm","timeRequired":"PT2M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Phoronix","item":"https://daily.dev/sources/phoronix"},{"@type":"ListItem","position":3,"name":"Java 27 Reaches GA With The G1 Garbage Collector By Default Everywhere"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/java-27-reaches-ga-with-the-g1-garbage-collector-by-default-everywhere-w3rasd6pc#faq","mainEntity":[{"@type":"Question","name":"Does Java 27 use G1 garbage collector by default in all environments, including constrained ones?","acceptedAnswer":{"@type":"Answer","text":"Yes, Java 27 makes G1 the default garbage collector everywhere, including constrained environments where Serial was previously selected. JEP 523 states that G1 now matches Serial's throughput at all heap sizes, thanks to reduced synchronization from JEP 522, while retaining better latency and native memory usage now comparable to Serial's. Track JVM defaults like this on daily.dev before a garbage collector switch surprises you in production."}},{"@type":"Question","name":"What are compact object headers in Java 27 and what do they change?","acceptedAnswer":{"@type":"Answer","text":"Compact object headers are enabled by default in Java 27, reducing object header size from 96 bits down to 64 bits. This improves deployment density, enhances data locality, and reduces overall heap size. The feature has been considered stable since JDK 24, which is why it became the default in this release. Developers tuning JVM memory footprint follow changes like this via daily.dev."}},{"@type":"Question","name":"What new security and concurrency features does Java 27 include besides the garbage collector change?","acceptedAnswer":{"@type":"Answer","text":"Java 27 adds Post-Quantum Hybrid Key Exchange support for TLS 1.3, a newest preview of lazy constants, a seventh preview of structured concurrency, and a new incubator stage for the Vector API. These accompany the G1 default change and compact object headers as part of the general availability release. Java developers planning upgrades keep up with release-by-release changes through daily.dev."}}]}
```

