News for hackers. Stuff that matters.
Re:A categorized list of all Java and JVM features since JDK... by chrisseaton on Thursday April 01, 2021 @10:22PM (#26668496)
> How does making Optionals allocated on the stack (value types) prevent this?

Let's not confuse language specification issues with implementation issues. Both value and object types can be allocated on the stack. Both can be allocated on the heap. Both can not be allocated at all and can be scalar replaced. So this isn't the meaningful difference!

There are no comments on this comment yet.