<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/just-in-time-compilation-for-java-performance-recent-and-ongoing-improvements-wwe9dp4bs" -->

---
title: Just-In-Time Compilation for Java Performance: Recent...
description: An Oracle Java platform compiler engineer walks through recent and upcoming just-in-time compilation improvements in OpenJDK, comparing JDK 21 to JDK 26....
canonical: https://daily.dev/posts/just-in-time-compilation-for-java-performance-recent-and-ongoing-improvements-wwe9dp4bs
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Just-In-Time Compilation for Java Performance: Recent and Ongoing Improvements | daily.dev
og:description: An Oracle Java platform compiler engineer walks through recent and upcoming just-in-time compilation improvements in OpenJDK, comparing JDK 21 to JDK 26....
og:url: https://daily.dev/posts/just-in-time-compilation-for-java-performance-recent-and-ongoing-improvements-wwe9dp4bs
og:image: https://api.daily.dev/og/posts/wWE9dp4bS.png
og:image:alt: Just-In-Time Compilation for Java Performance: Recent and Ongoing Improvements
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.

# Just-In-Time Compilation for Java Performance: Recent and Ongoing Improvements

**[Java \(Official Oracle\)](https://daily.dev/sources/java-oracle)** · 48 min read · 0 upvotes · 0 comments

## Summary

An Oracle Java platform compiler engineer walks through recent and upcoming just-in-time compilation improvements in OpenJDK, comparing JDK 21 to JDK 26. Topics include tiered compilation (interpreter, C1, C2), automatic vectorization improvements (consistent vectorization of reduction patterns, array-overlap speculation), hardware intrinsics for cryptography and string/array operations, scalability fixes for subtype-check and virtual-call caches, foreign function/memory API performance parity with JNI, bit-level range analysis for low-level code, and scalarization advances for both Valhalla value objects and regular objects via escape analysis. The talk closes with benchmark numbers showing compiler speed and generated code size improvements from JDK 21 to JDK 26.

## Full article

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

## Questions this post answers

### What JIT compiler improvements does JDK 26 add for auto-vectorization compared to JDK 21?

JDK 26 fixes inconsistent vectorization of reduction patterns (like sum and dot-product loops) by giving the compiler a better cost model, resulting in up to 4x speedups where JDK 21 was hesitant to vectorize. JDK 26 also adds speculative vectorization for array-copy patterns where source and destination arrays might overlap, guessing they are different arrays and falling back safely if wrong.

_Track JIT vectorization changes like these on daily.dev before planning a JDK upgrade._

### How does scalarization differ between value objects and regular objects in JDK 26?

Value objects (from Project Valhalla, not yet released) can always be scalarized since they are immutable, even across multiple compilations, with no analysis needed. Regular objects require expensive escape analysis and, as of JDK 26, can only be scalarized through if/else merges within a single compilation; loop merges and cross-compilation lifetimes are not yet supported, though generalized scalar replacement work is in progress.

_Developers weighing value classes versus regular objects can follow this scalarization work on daily.dev._

### Does upgrading to JDK 26 improve JIT compilation speed and generated code size over JDK 21?

Yes, JDK 26 reduces JIT compilation time by roughly 5-15% and generated code size by about 5-10% compared to JDK 21, largely due to lighter interaction with the G1 garbage collector. These gains come purely from compiler efficiency, separate from any runtime speedups the generated code itself provides.

_Follow JDK version benchmarks on daily.dev when deciding whether an upgrade is worth it._

## Similar posts on daily.dev

- [Just-In-Time Compilation for Java Performance: Recent and Ongoing Improvements](https://daily.dev/posts/just-in-time-compilation-for-java-performance-recent-and-ongoing-improvements-hshlklshk) · Inside Java · 14 upvotes · 0 comments
- [Java Performance Update: From JDK 21 to JDK 25 – Inside.java](https://daily.dev/posts/java-performance-update-from-jdk-21-to-jdk-25-inside-java-frayw9b7n) · Inside Java · 0 upvotes · 0 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

---

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

[View this post on daily.dev](https://daily.dev/posts/just-in-time-compilation-for-java-performance-recent-and-ongoing-improvements-wwe9dp4bs)

```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":"Just-In-Time Compilation for Java Performance: Recent and Ongoing Improvements","url":"https://daily.dev/posts/just-in-time-compilation-for-java-performance-recent-and-ongoing-improvements-wwe9dp4bs","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/just-in-time-compilation-for-java-performance-recent-and-ongoing-improvements-wwe9dp4bs"},"datePublished":"2026-09-20T11:11:40.755Z","dateModified":"2026-09-28T06:52:52.319Z","description":"An Oracle Java platform compiler engineer walks through recent and upcoming just-in-time compilation improvements in OpenJDK, comparing JDK 21 to JDK 26....","image":"https://i.ytimg.com/vi/h45cGYc6xP8/sddefault.jpg","thumbnailUrl":"https://i.ytimg.com/vi/h45cGYc6xP8/sddefault.jpg","isAccessibleForFree":true,"articleSection":"Java (Official Oracle)","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":"Java (Official Oracle)","logo":"https://media.daily.dev/image/upload/s--SM9hIYUY--/f_auto,q_auto/v1773648791/logos/java-oracle?_a=BAMAMiiu0","url":"https://daily.dev/sources/java-oracle"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/just-in-time-compilation-for-java-performance-recent-and-ongoing-improvements-wwe9dp4bs","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"performance,java,compiler-optimization","timeRequired":"PT48M","video":{"@type":"VideoObject","name":"Just-In-Time Compilation for Java Performance: Recent and Ongoing Improvements","description":"An Oracle Java platform compiler engineer walks through recent and upcoming just-in-time compilation improvements in OpenJDK, comparing JDK 21 to JDK 26....","thumbnailUrl":"https://i.ytimg.com/vi/h45cGYc6xP8/sddefault.jpg","uploadDate":"2026-09-20T11:11:40.755Z","duration":"PT48M","url":"https://api.daily.dev/r/wWE9dp4bS","embedUrl":"https://www.youtube.com/embed/h45cGYc6xP8"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Java (Official Oracle)","item":"https://daily.dev/sources/java-oracle"},{"@type":"ListItem","position":3,"name":"Just-In-Time Compilation for Java Performance: Recent and Ongoing Improvements"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/just-in-time-compilation-for-java-performance-recent-and-ongoing-improvements-wwe9dp4bs#faq","mainEntity":[{"@type":"Question","name":"What JIT compiler improvements does JDK 26 add for auto-vectorization compared to JDK 21?","acceptedAnswer":{"@type":"Answer","text":"JDK 26 fixes inconsistent vectorization of reduction patterns (like sum and dot-product loops) by giving the compiler a better cost model, resulting in up to 4x speedups where JDK 21 was hesitant to vectorize. JDK 26 also adds speculative vectorization for array-copy patterns where source and destination arrays might overlap, guessing they are different arrays and falling back safely if wrong. Track JIT vectorization changes like these on daily.dev before planning a JDK upgrade."}},{"@type":"Question","name":"How does scalarization differ between value objects and regular objects in JDK 26?","acceptedAnswer":{"@type":"Answer","text":"Value objects (from Project Valhalla, not yet released) can always be scalarized since they are immutable, even across multiple compilations, with no analysis needed. Regular objects require expensive escape analysis and, as of JDK 26, can only be scalarized through if/else merges within a single compilation; loop merges and cross-compilation lifetimes are not yet supported, though generalized scalar replacement work is in progress. Developers weighing value classes versus regular objects can follow this scalarization work on daily.dev."}},{"@type":"Question","name":"Does upgrading to JDK 26 improve JIT compilation speed and generated code size over JDK 21?","acceptedAnswer":{"@type":"Answer","text":"Yes, JDK 26 reduces JIT compilation time by roughly 5-15% and generated code size by about 5-10% compared to JDK 21, largely due to lighter interaction with the G1 garbage collector. These gains come purely from compiler efficiency, separate from any runtime speedups the generated code itself provides. Follow JDK version benchmarks on daily.dev when deciding whether an upgrade is worth it."}}]}
```

