[lworld] Integrated: 8367073: [lworld] Conform to JEP 450 encoding of mark word

Paul Hübner phubner at openjdk.org
Thu Oct 16 15:36:36 UTC 2025


On Fri, 12 Sep 2025 09:43:41 GMT, Paul Hübner <phubner at openjdk.org> wrote:

> Hi all, 
> 
> This PR refactors the mark word to use the order of bits as specified in [JEP 450](https://openjdk.org/jeps/450). 
> 
> Specifically, there are three portions to this change:
> - Moving the age bits lower to their intended position.
> - Fixing a miscompilation in the native `hashCode` intrinsic that got unearthed as a result.
> - Updating the documentation to be more inline with the mainline docs and minimal Valhalla additions.
> 
> Feedback is welcome, especially for the doc changes. If there are any ideas of other places in which similar miscompilations could occur, that would be valuable to know as well.

This pull request has now been integrated.

Changeset: cccb5014
Author:    Paul Hübner <phubner at openjdk.org>
Committer: Coleen Phillimore <coleenp at openjdk.org>
URL:       https://git.openjdk.org/valhalla/commit/cccb5014b5f84f8cd57ff808f5bbc07263e25545
Stats:     98 lines in 3 files changed: 8 ins; 74 del; 16 mod

8367073: [lworld] Conform to JEP 450 encoding of mark word

Reviewed-by: coleenp, fparain, thartmann

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

PR: https://git.openjdk.org/valhalla/pull/1578


More information about the valhalla-dev mailing list