Integrated: 8358568: Purge obsolete/broken GenerateSynchronizationCode flag

guanqiang han duke at openjdk.org
Mon Jul 7 05:25:45 UTC 2025


On Thu, 3 Jul 2025 01:59:55 GMT, guanqiang han <duke at openjdk.org> wrote:

> This PR fixes JDK-8358568, a JVM crash triggered when running with -XX:-GenerateSynchronizationCode
> 
> Problem:
> When synchronization code generation is disabled by -XX:-GenerateSynchronizationCode, the compiler’s do_monitor_exit() method still tries to access monitor objects without checking if any monitors exist.This causes an assertion failure and JVM crash.
> 
> Root Cause:
> Parse::do_monitor_exit() calls shared_unlock() using monitor info unconditionally,but with GenerateSynchronizationCode disabled, no monitor info is available, leading to invalid access.
> 
> Fix
> Purge obsolete/broken GenerateSynchronizationCode flag

This pull request has now been integrated.

Changeset: 45300dd1
Author:    hanguanqiang <yongheng_hgq at 126.com>
Committer: Tobias Hartmann <thartmann at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/45300dd1234c9aa92d6b82f1ef2b05b949b1ea9f
Stats:     23 lines in 6 files changed: 0 ins; 17 del; 6 mod

8358568: Purge obsolete/broken GenerateSynchronizationCode flag

Reviewed-by: thartmann, shade

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

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


More information about the hotspot-compiler-dev mailing list