On Tue, 27 Jan 2026 13:58:30 GMT, Tobias Hartmann <[email protected]> wrote:

>> Good point!
>
> For why I did this, see 
> https://github.com/openjdk/valhalla/pull/1954#discussion_r2726510944 
> :slightly_smiling_face:

> how can we guarantee that between the CAS L806 and this cast L809 another 
> thread hasn't updated the hash? Or do we not care if that's the case and up 
> to the application to handle?

But the same value object always has the same hash, right? So it does not 
matter if another thread already updated the hash.

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

PR Review Comment: 
https://git.openjdk.org/valhalla/pull/1954#discussion_r2732146062

Reply via email to