[lworld] Integrated: 8336837: [lworld] Invalid monitor information in JVMState when buffering at return

Tobias Hartmann thartmann at openjdk.org
Tue Aug 13 17:02:12 UTC 2024


On Tue, 13 Aug 2024 14:38:34 GMT, Tobias Hartmann <thartmann at openjdk.org> wrote:

> Similar to [JDK-8244519](https://bugs.openjdk.java.net/browse/JDK-8244519) / https://github.com/openjdk/valhalla/pull/36, while processing the JVMState of a buffer allocation at method return, we assert because there is no monitor information although the method is synchronized. The problem is that we call `shared_unlock` before buffering the return value (when returning a scalarized value object in non-scalarized form). The fix is to do that only afterwards. I also removed some stale code / comments and added corresponding tests.
> 
> Best regards,
> Tobias

This pull request has now been integrated.

Changeset: a7f3d20b
Author:    Tobias Hartmann <thartmann at openjdk.org>
URL:       https://git.openjdk.org/valhalla/commit/a7f3d20b57bfd52021933d942c34cf82462bbc8a
Stats:     32 lines in 2 files changed: 21 ins; 11 del; 0 mod

8336837: [lworld] Invalid monitor information in JVMState when buffering at return

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

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


More information about the valhalla-dev mailing list