<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/performance-improvements-in-jdk-26-2dhfwn7ad" -->

---
title: Performance Improvements in JDK 26 | daily.dev
description: JDK 26 brings a broad set of performance improvements across libraries, garbage collection, and the compiler/runtime. Key changes include a second-preview Lazy...
canonical: https://daily.dev/posts/performance-improvements-in-jdk-26-2dhfwn7ad
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Performance Improvements in JDK 26 | daily.dev
og:description: JDK 26 brings a broad set of performance improvements across libraries, garbage collection, and the compiler/runtime. Key changes include a second-preview Lazy...
og:url: https://daily.dev/posts/performance-improvements-in-jdk-26-2dhfwn7ad
og:image: https://api.daily.dev/og/posts/2Dhfwn7AD.png
og:image:alt: Performance Improvements in JDK 26
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.

# Performance Improvements in JDK 26

**[Baeldung](https://daily.dev/sources/baeldung)** · 8 min read · 7 upvotes · 0 comments

## Summary

JDK 26 brings a broad set of performance improvements across libraries, garbage collection, and the compiler/runtime. Key changes include a second-preview Lazy Constants API for safe deferred initialization, reduced allocation in MemorySegment.getString(), better type profiling for record hashCode(), optimized AES/ML-DSA/P-256 cryptography, a second G1 card table (JEP 522) cutting synchronization overhead with 5-15% throughput gains in reference-heavy workloads, AOT object caching now working with any garbage collector including ZGC (JEP 516), a smaller default initial heap based on MinHeapSize instead of a fixed percentage of physical memory, C2 compiler improvements for large parameter lists and SuperWord vectorization cost modeling, and virtual threads that can now unmount while waiting on class initialization. Most changes require no source code modifications, though some (like Lazy Constants) need preview flags.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://feeds.feedblitz.com/~/970060151/0/baeldung>

## Questions this post answers

### What does JEP 522 change about G1 garbage collector synchronization in JDK 26?

JEP 522 introduces a second card table for G1 so application threads and background refinement threads no longer share the same table and need less synchronization. This makes write barriers cheaper for reference updates. Published benchmarks show throughput improvements of 5-15% in reference-heavy workloads and up to roughly 5% in workloads with fewer reference updates, at a memory cost of about 2 MB per 1 GB of heap.

_Track JVM tuning changes like this G1 card table update on daily.dev before your next upgrade._

### Does JDK 26 change the default initial heap size calculation?

Yes, JDK 26 uses MinHeapSize as the default initial heap when no explicit size is set with -Xms or -XX:InitialHeapSize, instead of the previous default of roughly 1.5625% of physical memory. On a 256 GB machine that old formula could allocate around 4 GB upfront; the new default starts smaller and expands as needed, reducing startup overhead for applications relying on defaults.

_Developers sizing JVM heaps for production can follow changes like this on daily.dev._

### Can AOT object caching in JDK 26 be used with any garbage collector including ZGC?

Yes, JEP 516 adds a collector-independent representation for cached objects, so ahead-of-time object caching now works with every garbage collector, including ZGC. Previously a cached object prepared for one collector couldn't be used directly by another; now a GC-independent cache can be streamed into the heap and converted to the selected collector's format, combining faster startup with ZGC's low-pause behavior.

_Teams evaluating ZGC alongside AOT caching can keep up with JVM capability changes via daily.dev._

## Similar posts on daily.dev

- [New Features in Java 26](https://daily.dev/posts/new-features-in-java-26-x8pp9vbj4) · Baeldung · 76 upvotes · 9 comments
- [Java 26 Delivers Language Innovation, Library Improvements, Performance and Security](https://daily.dev/posts/java-26-delivers-language-innovation-library-improvements-performance-and-security-26rrhgwjk) · InfoQ · 0 upvotes · 0 comments
- [What’s new and exciting in JDK 26](https://daily.dev/posts/what-s-new-and-exciting-in-jdk-26-eijpvbbqh) · InfoWorld · 18 upvotes · 0 comments
- [Java 26 for DevOps – Inside.java](https://daily.dev/posts/java-26-for-devops-inside-java-daewouekj) · Inside Java · 1 upvotes · 0 comments

---

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

[View this post on daily.dev](https://daily.dev/posts/performance-improvements-in-jdk-26-2dhfwn7ad)

```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":"Performance Improvements in JDK 26","url":"https://daily.dev/posts/performance-improvements-in-jdk-26-2dhfwn7ad","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/performance-improvements-in-jdk-26-2dhfwn7ad"},"datePublished":"2026-09-25T05:45:58.779Z","dateModified":"2026-09-25T05:48:43.074Z","description":"JDK 26 brings a broad set of performance improvements across libraries, garbage collection, and the compiler/runtime. Key changes include a second-preview Lazy...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/bdf334823bf91642cdc4171ac4262e8c?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/bdf334823bf91642cdc4171ac4262e8c?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Baeldung","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":"Baeldung","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/52cccfb454d946c4b7dfa5e816f9e576","url":"https://daily.dev/sources/baeldung"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/performance-improvements-in-jdk-26-2dhfwn7ad","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":7},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"performance,java,jvm","timeRequired":"PT8M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Baeldung","item":"https://daily.dev/sources/baeldung"},{"@type":"ListItem","position":3,"name":"Performance Improvements in JDK 26"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/performance-improvements-in-jdk-26-2dhfwn7ad#faq","mainEntity":[{"@type":"Question","name":"What does JEP 522 change about G1 garbage collector synchronization in JDK 26?","acceptedAnswer":{"@type":"Answer","text":"JEP 522 introduces a second card table for G1 so application threads and background refinement threads no longer share the same table and need less synchronization. This makes write barriers cheaper for reference updates. Published benchmarks show throughput improvements of 5-15% in reference-heavy workloads and up to roughly 5% in workloads with fewer reference updates, at a memory cost of about 2 MB per 1 GB of heap. Track JVM tuning changes like this G1 card table update on daily.dev before your next upgrade."}},{"@type":"Question","name":"Does JDK 26 change the default initial heap size calculation?","acceptedAnswer":{"@type":"Answer","text":"Yes, JDK 26 uses MinHeapSize as the default initial heap when no explicit size is set with -Xms or -XX:InitialHeapSize, instead of the previous default of roughly 1.5625% of physical memory. On a 256 GB machine that old formula could allocate around 4 GB upfront; the new default starts smaller and expands as needed, reducing startup overhead for applications relying on defaults. Developers sizing JVM heaps for production can follow changes like this on daily.dev."}},{"@type":"Question","name":"Can AOT object caching in JDK 26 be used with any garbage collector including ZGC?","acceptedAnswer":{"@type":"Answer","text":"Yes, JEP 516 adds a collector-independent representation for cached objects, so ahead-of-time object caching now works with every garbage collector, including ZGC. Previously a cached object prepared for one collector couldn't be used directly by another; now a GC-independent cache can be streamed into the heap and converted to the selected collector's format, combining faster startup with ZGC's low-pause behavior. Teams evaluating ZGC alongside AOT caching can keep up with JVM capability changes via daily.dev."}}]}
```

