[jdk21u] Integrated: 8317262: LockStack::contains(oop) fails "assert(t->is_Java_thread()) failed: incorrect cast to JavaThread"

Aleksey Shipilev shade at openjdk.org
Thu Oct 19 18:33:14 UTC 2023


On Tue, 17 Oct 2023 09:02:25 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:

> Clean backport to fix the trivial bug in new light-weight locking. This code path is disabled by default in JDK 21u, but the bug would manifest if any user experimentally enables it.
> 
> Additional testing:
>  - [x] New regression test fails without the patch, passes with it (needs explicit `-XX:LockingMode=2` to reproduce)

This pull request has now been integrated.

Changeset: 94bb191b
Author:    Aleksey Shipilev <shade at openjdk.org>
URL:       https://git.openjdk.org/jdk21u/commit/94bb191b425c509c5ffebccdb665c623d6cde136
Stats:     101 lines in 2 files changed: 97 ins; 0 del; 4 mod

8317262: LockStack::contains(oop) fails "assert(t->is_Java_thread()) failed: incorrect cast to JavaThread"

Backport-of: 4ea1b99c1a6efe144af381ea538f93718e9baf74

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

PR: https://git.openjdk.org/jdk21u/pull/262


More information about the jdk-updates-dev mailing list