RFR: 8306591: SA and hotspot generate different hprof records for GC roots
Chris Plummer
cjplummer at openjdk.org
Thu Feb 19 02:36:59 UTC 2026
On Wed, 18 Feb 2026 09:11:34 GMT, Yasumasa Suenaga <ysuenaga at openjdk.org> wrote:
> We can extract heapdump from coredump via `jhsdb jmap --binaryheap`. However GC roots for system classes (`HPROF_GC_ROOT_STICKY_CLASS`) are not available i it even though heapdump from HotSpot contains.
>
> SA should generate `HPROF_GC_ROOT_STICKY_CLASS` into heapdump.
test/hotspot/jtreg/serviceability/sa/ClhsdbDumpheap.java line 75:
> 73: try (var snapshot = HprofReader.readFile(file, false, 0)) {
> 74: for (var root = snapshot.getRoots(); root.hasMoreElements();) {
> 75: if (root.nextElement().getType() == Root.SYSTEM_CLASS) {
Was this change intentional or was it just meant to be temporary test of your changes?
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/29781#discussion_r2825394748
More information about the serviceability-dev
mailing list