On Fri, 23 Oct 2026 01:17:51 GMT, Yasumasa Suenaga <[email protected]> wrote:
> Earlier versions of the SA jmap tool supported dumping the Java heap in Graph > eXchange Language (GXL) format. However, neither jcmd nor jhsdb provides a > command-line option to invoke this feature now. In addition, the > sun.jvm.hotspot.utilities package, which contains HeapGXLWriter, is not > exported by the jdk.hotspot.agent module. > > HeapGXLWriter seem to be no longer maintained and cannot handle flattened > objects introduced by Valhalla. Updating it to support flattened objects > would provide little benefit, since this feature is not exposed through the > current command-line tools. > > This change passed following jtreg tests: > - test/hotspot/jtreg/serviceability/sa > - test/jdk/sun/tools/jcmd > - test/jdk/sun/tools/jhsdb > - test/jdk/sun/tools/jmap > > --------- > - [x] I confirm that I make this contribution in accordance with the [OpenJDK > Interim AI Policy](https://openjdk.org/legal/ai). Marked as reviewed by cjplummer (Reviewer). src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/tools/JMap.java line 74: > 72: public static final int MODE_PMAP = 3; > 73: public static final int MODE_HEAP_GRAPH_HPROF_BIN = 4; > 74: public static final int MODE_HEAP_GRAPH_GXL = 5; // retierd Suggestion: public static final int MODE_HEAP_GRAPH_GXL = 5; // retired ------------- PR Review: https://git.openjdk.org/jdk/pull/33527#pullrequestreview-5723465378 PR Review Comment: https://git.openjdk.org/jdk/pull/33527#discussion_r4426824478
