[lworld] RFR: 8376171: [lworld] Enable storing the hash code in the mark word of value objects [v2]
Tobias Hartmann
thartmann at openjdk.org
Mon Jan 26 06:39:40 UTC 2026
On Fri, 23 Jan 2026 15:50:08 GMT, Paul Hübner <phubner at openjdk.org> wrote:
>> Tobias Hartmann has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Use markWord::no_hash
>
> src/hotspot/share/prims/jvm.cpp line 780:
>
>> 778: // Check if mark word contains hash code already
>> 779: intptr_t hash = obj->mark().hash();
>> 780: if (hash != 0) {
>
> We have a `has_no_hash` which might be better instead. We actually use a constant no hash value in the markWord (albeit it is zero right now).
Right, fixed.
-------------
PR Review Comment: https://git.openjdk.org/valhalla/pull/1954#discussion_r2726484364
More information about the valhalla-dev
mailing list