RFR: 8316885: jcmd: Compiler.CodeHeap_Analytics cmd does not inform about missing aggregate

Lutz Schmidt lucy at openjdk.org
Mon Sep 25 12:21:42 UTC 2023


…missing aggregate

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 and reviews are very much appreciated.
Tests (GHA and SAP-internal test suite) pending.

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

Commit messages:
 - 8316885: jcmd: Compiler.CodeHeap_Analytics cmd does not inform about missing aggregate

Changes: https://git.openjdk.org/jdk/pull/15900/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=15900&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8316885
  Stats: 21 lines in 2 files changed: 21 ins; 0 del; 0 mod
  Patch: https://git.openjdk.org/jdk/pull/15900.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/15900/head:pull/15900

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


More information about the hotspot-compiler-dev mailing list