RFR: 8359936: StableValues can release the underlying function after complete computation [v4]

Viktor Klang vklang at openjdk.org
Wed Aug 13 09:06:15 UTC 2025


On Wed, 13 Aug 2025 08:57:20 GMT, Per Minborg <pminborg at openjdk.org> wrote:

>> Would it make sense to record that it failed to initialize and then count down the holder, and then throw ExceptionInInitializerError (or something else?) upon subsequent access? 🤔
>
> We thought about that in the past. There were several prototypes with a similar behavior. It is not an unreasonable alternative.

Ok, let's put a pin in this for now, and revisit later. 👍

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/25878#discussion_r2272615326


More information about the core-libs-dev mailing list