JDK-8331401 : G1: Make G1HRPrinter AllStatic
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: 23
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2024-04-30
  • Updated: 2024-05-09
  • Resolved: 2024-05-03
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 23
23 b22Fixed
Related Reports
Relates :  
Relates :  
Description
The HRPrinter does not have any member variables (static or non-static), so it can be made AllStatic.

I.e. there is no reason to have an instance variable around.
Comments
Changeset: 8ed31902 Author: Thomas Schatzl <tschatzl@openjdk.org> Date: 2024-05-03 12:03:28 +0000 URL: https://git.openjdk.org/jdk/commit/8ed319023e921a980ea197fbffe417f35fc59b94
03-05-2024

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/19058 Date: 2024-05-02 12:23:50 +0000
02-05-2024