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

Per Minborg pminborg at openjdk.org
Tue Aug 26 10:46:44 UTC 2025


On Wed, 13 Aug 2025 11:51:29 GMT, Per Minborg <pminborg at openjdk.org> wrote:

>> This PR proposes to release the underlying function if a stable function or collection has invoked its underlying supplier exhaustively so that it can be collected.
>> 
>> This PR passes tier1, tier2, and tier3 testing on multiple platforms.
>
> Per Minborg has updated the pull request incrementally with two additional commits since the last revision:
> 
>  - Update src/java.base/share/classes/jdk/internal/lang/stable/StableFunction.java
>    
>    Co-authored-by: Viktor Klang <viktor.klang at oracle.com>
>  - Update src/java.base/share/classes/jdk/internal/lang/stable/StableEnumFunction.java
>    
>    Co-authored-by: Viktor Klang <viktor.klang at oracle.com>

This feature will be implemented in Stable Values (second preview), so I am closing this PR. Thanks for reviewing this PR. The proposed changes will be carried over to SV2.

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

PR Comment: https://git.openjdk.org/jdk/pull/25878#issuecomment-3223623327


More information about the core-libs-dev mailing list