<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/java-27-features-compact-object-headers-by-default-jfr-redaction-post-quantum-tls--a6ex9vv6l" -->

---
title: Java 27 features: Compact Object Headers by default, JFR...
description: JDK 27 has entered Release Candidate with nine JEPs frozen since June 4, 2026, and general availability set for September 15, 2026. Four JEPs go final with...
canonical: https://daily.dev/posts/java-27-features-compact-object-headers-by-default-jfr-redaction-post-quantum-tls--a6ex9vv6l
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Java 27 features: Compact Object Headers by default, JFR redaction & post-quantum TLS! | daily.dev
og:description: JDK 27 has entered Release Candidate with nine JEPs frozen since June 4, 2026, and general availability set for September 15, 2026. Four JEPs go final with...
og:url: https://daily.dev/posts/java-27-features-compact-object-headers-by-default-jfr-redaction-post-quantum-tls--a6ex9vv6l
og:image: https://api.daily.dev/og/posts/A6EX9vv6L.png
og:image:alt: Java 27 features: Compact Object Headers by default, JFR redaction & post-quantum TLS!
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 features: Compact Object Headers by default, JFR redaction & post-quantum TLS!

**[Awesome Java Newsletter](https://daily.dev/sources/java_libhunt)** · 19 min read · 0 upvotes · 0 comments

## Summary

JDK 27 has entered Release Candidate with nine JEPs frozen since June 4, 2026, and general availability set for September 15, 2026. Four JEPs go final with zero code changes required: compact object headers become the default (merging mark and class words into a single 64-bit word, shrinking a two-int object from 24 to 16 bytes and saving ~22% heap per SPECjbb2015), G1 becomes the default GC everywhere (even tiny containers that previously silently got Serial GC), JFR now redacts secrets like API keys and passwords from recordings before they hit disk, and TLS 1.3 gets post-quantum hybrid key exchange (X25519MLKEM768) on by default. Five JEPs remain in preview/incubator: Lazy Constants (3rd preview) drops isInitialized()/orElse() and adds Set.ofLazy(), Primitive Types in Patterns (5th preview, unchanged), Structured Concurrency (7th preview) replaces the unchecked FailedException with a checked ExecutionException and adds a Joiner third type parameter, PEM Encodings (3rd preview) mostly renames classes, and the Vector API hits its 12th incubator round, still waiting on Project Valhalla value classes. Minor changes include ISO-8601 short zone offset parsing, JVMCI removal, and deprecation of -XX:-UseCompressedClassPointers.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://aboullaite.me/java-27-features>

## Questions this post answers

### What does compact object headers becoming the default in Java 27 actually change for object size?

Starting with JDK 27, UseCompactObjectHeaders defaults to true, merging the 64-bit mark word and 32-bit class word into a single 64-bit header instead of two separate words. A simple two-int class shrinks from a 24-byte instance to 16 bytes. JEP 534 reports 22% less heap usage and 8% less CPU time on SPECjbb2015, plus 15% fewer garbage collections, with no code changes required.

_daily.dev surfaces JVM tuning changes like this so heap sizing decisions stay grounded in current defaults._

### Why was my small containerized Java app using Serial GC instead of G1 before JDK 27?

Before JDK 27, the JVM defaulted to Serial GC instead of G1 whenever it detected one CPU or less than 1792 MB of memory, which matches many small Kubernetes pods. JEP 523 makes G1 the default in all environments starting in JDK 27, since G1's throughput improved enough in JDK 26 to close the gap while keeping better pause behavior; Serial GC remains available via -XX:+UseSerialGC.

_teams re-baselining pod memory limits after a GC default change can track these shifts on daily.dev._

### Does Java Flight Recorder leak secrets like passwords and API keys in recordings?

Before JDK 27, yes: JFR recordings captured environment variables, system properties, and program arguments verbatim, so a .jfr file could contain a database password or API key. JEP 536 adds in-process redaction starting in JDK 27, replacing values whose variable or property name matches patterns like *password*, *api*key*, *token*, or *secret* with [REDACTED] before the data ever reaches disk; it covers startup events only, not application events or exception messages.

_engineers hardening observability pipelines can follow redaction changes like this via 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
- [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

---

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

[View this post on daily.dev](https://daily.dev/posts/java-27-features-compact-object-headers-by-default-jfr-redaction-post-quantum-tls--a6ex9vv6l)

```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 features: Compact Object Headers by default, JFR redaction \u0026 post-quantum TLS!","url":"https://daily.dev/posts/java-27-features-compact-object-headers-by-default-jfr-redaction-post-quantum-tls--a6ex9vv6l","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/java-27-features-compact-object-headers-by-default-jfr-redaction-post-quantum-tls--a6ex9vv6l"},"datePublished":"2026-08-27T20:11:52.281Z","dateModified":"2026-08-29T12:28:48.316Z","description":"JDK 27 has entered Release Candidate with nine JEPs frozen since June 4, 2026, and general availability set for September 15, 2026. Four JEPs go final with...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/dfbd723a1b354b6e3d82bf9a4e49e376?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/dfbd723a1b354b6e3d82bf9a4e49e376?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Awesome Java Newsletter","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":"Awesome Java Newsletter","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/7729929f2ca649d7b13f6b04aa94d300","url":"https://daily.dev/sources/java_libhunt"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/java-27-features-compact-object-headers-by-default-jfr-redaction-post-quantum-tls--a6ex9vv6l","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"java","timeRequired":"PT19M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Awesome Java Newsletter","item":"https://daily.dev/sources/java_libhunt"},{"@type":"ListItem","position":3,"name":"Java 27 features: Compact Object Headers by default, JFR redaction \u0026 post-quantum TLS!"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/java-27-features-compact-object-headers-by-default-jfr-redaction-post-quantum-tls--a6ex9vv6l#faq","mainEntity":[{"@type":"Question","name":"What does compact object headers becoming the default in Java 27 actually change for object size?","acceptedAnswer":{"@type":"Answer","text":"Starting with JDK 27, UseCompactObjectHeaders defaults to true, merging the 64-bit mark word and 32-bit class word into a single 64-bit header instead of two separate words. A simple two-int class shrinks from a 24-byte instance to 16 bytes. JEP 534 reports 22% less heap usage and 8% less CPU time on SPECjbb2015, plus 15% fewer garbage collections, with no code changes required. daily.dev surfaces JVM tuning changes like this so heap sizing decisions stay grounded in current defaults."}},{"@type":"Question","name":"Why was my small containerized Java app using Serial GC instead of G1 before JDK 27?","acceptedAnswer":{"@type":"Answer","text":"Before JDK 27, the JVM defaulted to Serial GC instead of G1 whenever it detected one CPU or less than 1792 MB of memory, which matches many small Kubernetes pods. JEP 523 makes G1 the default in all environments starting in JDK 27, since G1's throughput improved enough in JDK 26 to close the gap while keeping better pause behavior; Serial GC remains available via -XX:+UseSerialGC. teams re-baselining pod memory limits after a GC default change can track these shifts on daily.dev."}},{"@type":"Question","name":"Does Java Flight Recorder leak secrets like passwords and API keys in recordings?","acceptedAnswer":{"@type":"Answer","text":"Before JDK 27, yes: JFR recordings captured environment variables, system properties, and program arguments verbatim, so a .jfr file could contain a database password or API key. JEP 536 adds in-process redaction starting in JDK 27, replacing values whose variable or property name matches patterns like *password*, *api*key*, *token*, or *secret* with [REDACTED] before the data ever reaches disk; it covers startup events only, not application events or exception messages. engineers hardening observability pipelines can follow redaction changes like this via daily.dev."}}]}
```

