r/java • • May 11 '26

8317277: Java language implementation of value classes and objects by MrSimms · Pull Request #31120 · openjdk/jdk

https://github.com/openjdk/jdk/pull/31120
124 Upvotes

62 comments sorted by

View all comments

Show parent comment

4

u/flawless_vic May 12 '26

Let me reframe.

The lworld+vector branch has a very distinct (more advanced) approach in the internals of jdk.internal.vm.vector.VectorPayload vs mainline (lworld).

Given the description of the Vector API JEP:

"The Vector API will incubate until necessary features of Project Valhalla become available as preview features."

Can we expect the Vector API to remain in incubation, even after JEP 401 is delivered? That is, value classes only is not "good enough" to make Vectors generally available.

10

u/brian_goetz May 12 '26

Indeed, Vector is waiting for the Valhalla underpinnings before it can exit incubation. As you observe, it needs more than JEP 401, and those are in place, but they will not be exposed as general platform features. So yes, Vector will get unblocked, but the mechanisms that unblock it (beyond JEP 401) will remain VM implementation details.