JDK-8316670 : Remove effectively unused nmethodBucket::_count
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 21,22
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2023-09-21
  • Updated: 2024-04-04
  • Resolved: 2023-09-25
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 21 JDK 22
21.0.4-oracleFixed 22 b17Fixed
Related Reports
Duplicate :  
Relates :  
Relates :  
Description
The nmethodBucket class has a _count member that has once been added to implement a refcount to check for mismatched add/remove calls (I believe).

However, currently that count is never decreased due to changes in removal, so it and its uses are dead code.

Remove.
Comments
A pull request was submitted for review. URL: https://git.openjdk.org/jdk21u-dev/pull/428 Date: 2024-03-29 21:40:50 +0000
29-03-2024

Fix request [21u] I backport this for parity with 21.0.4-oracle. Low risk, removing unused code. Clean backport.
29-03-2024

Changeset: 837783c2 Author: Thomas Schatzl <tschatzl@openjdk.org> Date: 2023-09-25 06:36:14 +0000 URL: https://git.openjdk.org/jdk/commit/837783c2d333627bfcbef00fc67024aff847bd9f
25-09-2023

This became dead with JDK-8290025, right?
22-09-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/15863 Date: 2023-09-21 12:54:15 +0000
21-09-2023