On Mon, 29 Jun 2026 05:38:01 GMT, Daisuke Yamazaki <[email protected]> wrote:
> Valhalla uses `load_prototype_header()` to read the Valhalla-specific mark > word flags from the `klass` when the object appears to be locked. > > However, when `UseObjectMonitorTable` is enabled, object monitors are not > represented by displaced mark words in the object header. > In that case, the object header still contains the relevant markWord bits, so > we can get the loaded header directly. > > This patch avoids the locked-object/prototype-header path when > `UseObjectMonitorTable` is enabled. > > --------- > - [x] I confirm that I make this contribution in accordance with the [OpenJDK > Interim AI Policy](https://openjdk.org/legal/ai). This looks good. Thanks for noticing this. We are taking out the OM table soon, so this will be your faster code. ------------- Marked as reviewed by coleenp (Committer). PR Review: https://git.openjdk.org/valhalla/pull/2591#pullrequestreview-4595095764
