RFR: 8330465: Stable Values and Collections (Internal) [v4]

Per Minborg pminborg at openjdk.org
Wed May 15 15:27:34 UTC 2024


On Wed, 15 May 2024 08:53:32 GMT, ExE Boss <duke at openjdk.org> wrote:

>> Per Minborg has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Revise docs for ofBackground()
>
> src/java.base/share/classes/jdk/internal/lang/StableValue.java line 1:
> 
>> 1: /*
> 
> Maybe also add `StableValue​::⁠<T>ofLazy​(Supplier<? extends T>)` which behaves more like the original **Computed Constants** JEP draft?

There is a method `StableValue::asSupplier` that is similar to the former ComputedConstant behavior.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/18794#discussion_r1601840547


More information about the hotspot-compiler-dev mailing list