[lworld] RFR: 8376171: [lworld] Enable storing the hash code in the mark word of value objects [v3]

Tobias Hartmann thartmann at openjdk.org
Tue Jan 27 14:03:35 UTC 2026


On Tue, 27 Jan 2026 10:38:13 GMT, Stefan Karlsson <stefank at openjdk.org> wrote:

>> Yes, that's a nice simplification. However that raises another question I have, 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?
>
> Good point!

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

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

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


More information about the valhalla-dev mailing list