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).

@PeyaPeyaPeyang 
Your change (at version c0d2ce828106afd1de3cef5be1c4c857b4aa9562) is now ready 
to be sponsored by a Committer.

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

PR Comment: https://git.openjdk.org/valhalla/pull/2591#issuecomment-4840334651

Reply via email to