JDK-8316885 : jcmd: Compiler.CodeHeap_Analytics cmd does not inform about missing aggregate
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 17,21,22
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2023-09-25
  • Updated: 2023-10-05
  • Resolved: 2023-09-28
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 22
22 b18Fixed
Related Reports
Relates :  
Description
If jcmd users want to print statistical data about a specific property of the code heap (instead of requesting "all"), they first have to aggregate such data. If this step was forgotten, the requested function just returns. This should be improved.

------ Output before enhancement --------
> bin/jcmd <pid> Compiler.CodeHeap_Analytics FreeSpace
<pid>:

__ CodeHeapStateAnalytics lock wait took      0.000 seconds _________

__ CodeHeapStateAnalytics total duration      0.000 seconds _________



------ Output after enhancement --------
> bin/jcmd <pid> Compiler.CodeHeap_Analytics FreeSpace
<pid>:

__ CodeHeapStateAnalytics lock wait took      0.000 seconds _________

No aggregated data available for heap CodeHeap. Run function aggregate first.

__ CodeHeapStateAnalytics total duration      0.000 seconds _________


Comments
Changeset: 1230aed6 Author: Lutz Schmidt <lucy@openjdk.org> Date: 2023-09-28 11:50:51 +0000 URL: https://git.openjdk.org/jdk/commit/1230aed61d286fe9c09f46e2bab626d0e8fe0273
28-09-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/15900 Date: 2023-09-25 12:13:40 +0000
25-09-2023