On Wed, 12 Mar 2025 14:14:13 GMT, Per Minborg <pminb...@openjdk.org> wrote:
>> It's true that the storage can be flatter here -- that said, this can also >> be done as a later refactoring. One advantage of doing things the way >> @minborg did it here, is that it's fairly easy to prove that the code below >> is correct -- which makes the initial review easier. > > Ahh. Now I see what you mean. This is something we did in a handful of > prototypes we explored. While it is true that there will be one indirection > less, the complexity of the code is going to grow. Also, if the element is > constant folded, it does not matter. We will explore this option after the first integration of Stable Values. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/23972#discussion_r2026914998