← Retour au blog
tech 19 June 2026

Project Valhalla: How a Decade of Work Arrives in JDK 28

Project Valhalla aims to make Java classes as efficient as primitives. After a decade in development, JDK 28 is set to integrate this groundbreaking feature.

Article inspired by the original source
Project Valhalla, Explained: How a Decade of Work Arrives in JDK 28 ↗ www.jvm-weekly.com

Introduction

For years, Java developers have yearned for better class performance without sacrificing code readability. Enter Project Valhalla, promising to "code like a class, work like an int." This initiative, launched over a decade ago, is set to revolutionize Java with its integration into JDK 28.

The Fundamental Problem

In Java, except for eight primitive types (int, long, double, etc.), everything is a reference type. This means each variable is a pointer to an object on the heap, introducing pointer indirection. While not a problem for a single object, at scale, this results in increased memory consumption and slower access times.

The Evolution of Valhalla

The idea behind Valhalla is to allow developers to create classes that, while behaving like references, are treated by the JVM as efficiently as primitives. The effort began in 2014, with numerous concepts discarded over the years, but the core remained: enhance performance without sacrificing readability.

JEP 401: Value Classes and Objects

At the heart of this evolution is JEP 401, introducing "value classes" that can be used like objects but treated like primitives by the JVM. This innovation promises to reduce memory overhead and improve execution speed.

Impact on the Java Ecosystem

Valhalla's arrival in JDK 28 is a monumental change for the Java ecosystem. Developers can now optimize performance without compromising code structure and readability. This could transform many memory-heavy frameworks and applications.

Conclusion

Project Valhalla is finally ready for its much-anticipated debut, offering Java developers a new dimension of performance and efficiency. As we eagerly await JDK 28, it's time to prepare to leverage these new capabilities. Let's discuss your project in 15 minutes.

Project Valhalla JDK 28 Java performance Value classes JEP 401
Deepthix newsletter · 100% AI · every Monday 8am

An AI agent reads tech for you.

Our AI agent scans ~200 sources per week and ships the best articles to your inbox Monday 8am. Free. One click to unsubscribe.

Visit the newsletter page →

Want to automate your operations?

Let's talk about your project in 15 minutes.

Book a call