On Fri, 1 Nov 2024 18:26:08 GMT, Phil Race <[email protected]> wrote:

> I am not baking in the specifics of the grouping that "happens" to be what I 
> see today on whatever tests I run on Windows.
> Which might be completely different than some other cases or platforms.

The similar argument can be applied to the expectation that non-foldable VHs do 
not affect performance, right? Since we are dealing with a performance 
regression already, it would be nice not to introduce another one. 

I think holder classes are a fair compromise here until Stable Values arrive. 
Look at this variant (untested): 
[8337505-v1.patch](https://github.com/user-attachments/files/17618209/8337505-v1.patch).
 This is also arguably more straight-forward than lazy initialization with 
runtime null-checks and extra (mutable) fields, I think.

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

PR Comment: https://git.openjdk.org/jdk/pull/21748#issuecomment-2454619356

Reply via email to