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 pull request has now been integrated.

Changeset: 28b617e9
Author:    Daisuke Yamazaki <[email protected]>
Committer: David Holmes <[email protected]>
URL:       
https://git.openjdk.org/valhalla/commit/28b617e9c69002e000f13df904b75c10c4b7e3fe
Stats:     43 lines in 4 files changed: 12 ins; 4 del; 27 mod

8386858: [lworld] omit load_prototype_header when UseObjectMonitorTable is used

Reviewed-by: coleenp, dholmes

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

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

Reply via email to