Integrated: 8365556: ObjectMonitor::try_lock_or_add_to_entry_list() returns true with the wrong state of the node

Anton Artemov duke at openjdk.org
Wed Aug 20 08:15:51 UTC 2025


On Fri, 15 Aug 2025 07:22:02 GMT, Anton Artemov <duke at openjdk.org> wrote:

> Hi, please consider the following change:
> 
> `ObjectMonitor::try_lock_or_add_to_entry_list() `does not change the node state to `TS_RUN `in case of a successful acquisition of the object monitor. In certain cases this can break the guarantee statement in the `ObjectMonitor::wait()` method and lead to a crash. The missing statement is added.
> 
> Tested in tiers 1 - 5.

This pull request has now been integrated.

Changeset: 70f34693
Author:    Anton Artemov <anton.artemov at oracle.com>
Committer: David Holmes <dholmes at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/70f3469310f385c4953a9069ca99e0806bc6ef5b
Stats:     2 lines in 1 file changed: 2 ins; 0 del; 0 mod

8365556: ObjectMonitor::try_lock_or_add_to_entry_list() returns true with the wrong state of the node

Reviewed-by: pchilanomate, dholmes, fbredberg

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

PR: https://git.openjdk.org/jdk/pull/26794


More information about the hotspot-runtime-dev mailing list