JDK-8367601 : Remove held_monitor_count
  • Type: Sub-task
  • Component: hotspot
  • Sub-Component: runtime
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • CPU: ppc,x86_64,aarch64,riscv
  • Submitted: 2025-09-13
  • Updated: 2025-10-06
  • Resolved: 2025-10-06
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 26
26 masterFixed
Description
We should remove held_monitor_count, since it's not needed for lightweight locking, and lightweight locking is the only locking we have.

If we remove held_monitor_count, we no longer need parent_held_monitor_count and jni_monitor_count. So we should remove them as well.
Comments
Changeset: e6781fd9 Branch: master Author: Fredrik Bredberg <fbredberg@openjdk.org> Date: 2025-10-06 08:10:11 +0000 URL: https://git.openjdk.org/jdk/commit/e6781fd9497723a7baab38d6bfb958ba1b1c24ff
06-10-2025

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/27570 Date: 2025-09-30 09:43:51 +0000
30-09-2025