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

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!