RFR: 8359936: StableValues can release the underlying function after complete computation [v4]
Viktor Klang
vklang at openjdk.org
Tue Aug 12 13:26:11 UTC 2025
On Tue, 12 Aug 2025 11:54:38 GMT, Per Minborg <pminborg at openjdk.org> wrote:
>> @ExE-Boss That seems to presume that 1) it will be called again, and 2) it will eventually produce a non-exception
>
> The underlying function will be retained until all values are computed (non exceptionally). It is as simple as that.
>
> I was not able to come up with something better than that, but I am open to other suggestions.
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? 🤔
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/25878#discussion_r2269834372
More information about the core-libs-dev
mailing list