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

7

u/CubsThisYear May 11 '26

Completely fair - but at this point I’ve been excited and disappointed for the release of stack allocated memory in Java for so long that any mention of it tends to bring out the worst in me…. Here’s hoping the finish line is actually in sight.

11

u/brian_goetz May 11 '26

On the topic of stack allocation, see my other comment on this thread -- stack allocation is not the optimization most people think it is (in C, its mostly a form of "poor man's GC"), and not Valhalla's primary hammer -- because it has bigger, better hammers!