<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/java-27-changed-more-than-i-expected-mu18gvwhz" -->

---
title: Java 27 Changed More Than I Expected | daily.dev
description: Java 27 arrives as the smallest release in years with only nine JEPs, but it flips several important defaults. Compact object headers (from Java 25) are now on...
canonical: https://daily.dev/posts/java-27-changed-more-than-i-expected-mu18gvwhz
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Java 27 Changed More Than I Expected | daily.dev
og:description: Java 27 arrives as the smallest release in years with only nine JEPs, but it flips several important defaults. Compact object headers (from Java 25) are now on...
og:url: https://daily.dev/posts/java-27-changed-more-than-i-expected-mu18gvwhz
og:image: https://api.daily.dev/og/posts/Mu18GvWHz.png
og:image:alt: Java 27 Changed More Than I Expected
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 Changed More Than I Expected

**[ForrestKnight](https://daily.dev/sources/fknight)** · 10 min read · 0 upvotes · 0 comments

## Summary

Java 27 arrives as the smallest release in years with only nine JEPs, but it flips several important defaults. Compact object headers (from Java 25) are now on by default, shrinking object headers from 12 to 8 bytes, cutting heap use by roughly 22%, CPU time by 8%, and GC pauses by 15% on the JBB2015 benchmark. G1 is now the default garbage collector on all machine sizes, replacing the old rule that gave small containers (1 CPU or under 1,792MB) the serial collector, trading a bit of throughput for better tail latency. Flight Recorder now redacts secrets like tokens and passwords from recordings by default. The headline JEP adds post-quantum key exchange (hybrid X25519 + ML-KEM) to TLS 1.3 by default, defending against 'harvest now, decrypt later' attacks. Five JEPs remain in preview/incubation, including Valhalla-blocked Vector API and structured concurrency (7th preview). Valhalla value classes are slated as a preview in Java 28 next March, with Java 29 as the next LTS.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.youtube.com/watch?v=29k3eay4Lr4>

## Questions this post answers

### What changed with compact object headers becoming default in Java 27?

Compact object headers, previously an opt-in flag introduced in Java 25, are now enabled by default in Java 27, reducing per-object header size from 12 bytes to 8 bytes. On the SPEC JBB2015 benchmark this produced 22% less heap usage, 8% less CPU time, and 15% fewer garbage collections. It can still be disabled with a minus-flag if something breaks, though the 12-byte headers are planned for eventual removal.

_Teams planning JVM upgrades can track default GC and memory changes like this one on daily.dev._

### Is G1 the default garbage collector for all JVM sizes in Java 27?

Yes, Java 27 makes G1 the default garbage collector regardless of machine size, ending the prior behavior where machines with one CPU or less than 1,792 MB of memory automatically got the serial collector instead. On small boxes G1 uses similar memory to serial with slightly lower throughput but better max latency; serial remains available via an explicit flag.

_Developers tuning container and lambda memory limits can follow JVM default changes like this via daily.dev._

### What does Java 27's post-quantum TLS support actually protect against?

Java 27 adds a hybrid post-quantum key exchange to TLS 1.3 in the JDK, combining the classical X25519 elliptic curve exchange with the post-quantum ML-KEM algorithm, enabled by default for apps using the standard javax.net.ssl stack. It defends against 'harvest now, decrypt later' attacks, where encrypted traffic captured today could be decrypted once quantum computers become capable, relevant for data like medical or financial records that must stay secure for a decade or more.

_Anyone assessing long-term encryption risk can follow JDK security defaults like this on daily.dev._

## Similar posts on daily.dev

- [JDK 27: The quiet before the storm](https://daily.dev/posts/jdk-27-the-quiet-before-the-storm-eixxzoapd) · InfoWorld · 2 upvotes · 0 comments

---

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

[View this post on daily.dev](https://daily.dev/posts/java-27-changed-more-than-i-expected-mu18gvwhz)

```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 Changed More Than I Expected","url":"https://daily.dev/posts/java-27-changed-more-than-i-expected-mu18gvwhz","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/java-27-changed-more-than-i-expected-mu18gvwhz"},"datePublished":"2026-09-16T16:11:13.198Z","dateModified":"2026-09-17T01:07:30.874Z","description":"Java 27 arrives as the smallest release in years with only nine JEPs, but it flips several important defaults. Compact object headers (from Java 25) are now on...","image":"https://i.ytimg.com/vi/29k3eay4Lr4/sddefault.jpg","thumbnailUrl":"https://i.ytimg.com/vi/29k3eay4Lr4/sddefault.jpg","isAccessibleForFree":true,"articleSection":"ForrestKnight","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":"ForrestKnight","logo":"https://media.daily.dev/image/upload/s--dRXNb2_3--/f_auto/v1745508651/logos/fknight","url":"https://daily.dev/sources/fknight"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/java-27-changed-more-than-i-expected-mu18gvwhz","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"java,quantum-computing,jvm","timeRequired":"PT10M","video":{"@type":"VideoObject","name":"Java 27 Changed More Than I Expected","description":"Java 27 arrives as the smallest release in years with only nine JEPs, but it flips several important defaults. Compact object headers (from Java 25) are now on...","thumbnailUrl":"https://i.ytimg.com/vi/29k3eay4Lr4/sddefault.jpg","uploadDate":"2026-09-16T16:11:13.198Z","duration":"PT10M","url":"https://api.daily.dev/r/Mu18GvWHz","embedUrl":"https://www.youtube.com/embed/29k3eay4Lr4"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"ForrestKnight","item":"https://daily.dev/sources/fknight"},{"@type":"ListItem","position":3,"name":"Java 27 Changed More Than I Expected"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/java-27-changed-more-than-i-expected-mu18gvwhz#faq","mainEntity":[{"@type":"Question","name":"What changed with compact object headers becoming default in Java 27?","acceptedAnswer":{"@type":"Answer","text":"Compact object headers, previously an opt-in flag introduced in Java 25, are now enabled by default in Java 27, reducing per-object header size from 12 bytes to 8 bytes. On the SPEC JBB2015 benchmark this produced 22% less heap usage, 8% less CPU time, and 15% fewer garbage collections. It can still be disabled with a minus-flag if something breaks, though the 12-byte headers are planned for eventual removal. Teams planning JVM upgrades can track default GC and memory changes like this one on daily.dev."}},{"@type":"Question","name":"Is G1 the default garbage collector for all JVM sizes in Java 27?","acceptedAnswer":{"@type":"Answer","text":"Yes, Java 27 makes G1 the default garbage collector regardless of machine size, ending the prior behavior where machines with one CPU or less than 1,792 MB of memory automatically got the serial collector instead. On small boxes G1 uses similar memory to serial with slightly lower throughput but better max latency; serial remains available via an explicit flag. Developers tuning container and lambda memory limits can follow JVM default changes like this via daily.dev."}},{"@type":"Question","name":"What does Java 27's post-quantum TLS support actually protect against?","acceptedAnswer":{"@type":"Answer","text":"Java 27 adds a hybrid post-quantum key exchange to TLS 1.3 in the JDK, combining the classical X25519 elliptic curve exchange with the post-quantum ML-KEM algorithm, enabled by default for apps using the standard javax.net.ssl stack. It defends against 'harvest now, decrypt later' attacks, where encrypted traffic captured today could be decrypted once quantum computers become capable, relevant for data like medical or financial records that must stay secure for a decade or more. Anyone assessing long-term encryption risk can follow JDK security defaults like this on daily.dev."}}]}
```

