OpenJDK merges JEP 401 value objects preview
OpenJDK has merged pull request #31120 into master, integrating JEP 401 for Value Objects (Preview) as part of Project Valhalla. The change introduces identity-free, immutable data structures to Java, enabling the JVM to eliminate object header overhead and optimize memory layout via heap flattening and scalarization.
The integration of JEP 401 into OpenJDK master represents one of the most significant architectural evolutions in Java's history, directly addressing the language's longstanding memory overhead for user-defined data structures.
- –Eliminates object identity overhead, allowing value objects to be stored inline without object headers or reference indirection.
- –Substantially improves CPU cache locality and reduces memory footprint for performance-critical Java applications.
- –Marks a major milestone for Project Valhalla after years of engine engineering across the Java compiler, class libraries, and JVM runtime.
DISCOVERED
2h ago
2026-07-31
PUBLISHED
5h ago
2026-07-31
RELEVANCE
AUTHOR
mfiguiere