RFR: 7903579: JOL: Heap dump parser handles superclasses incorrectly
Aleksey Shipilev
shade at openjdk.org
Mon Nov 13 11:31:38 UTC 2023
Current heap dump parser relies on class records to appear after the superclass records appear. This does not actually hold for hprof: we can emit the subclass records first, and only then emit the superclass records.
Therefore, current heap dump reader is broken when it encounters hierarchical classes. It would then underestimate the footprint of subclasses, because it does not record superclasses.
-------------
Commit messages:
- Fix
Changes: https://git.openjdk.org/jol/pull/53/files
Webrev: https://webrevs.openjdk.org/?repo=jol&pr=53&range=00
Issue: https://bugs.openjdk.org/browse/CODETOOLS-7903579
Stats: 54 lines in 2 files changed: 37 ins; 6 del; 11 mod
Patch: https://git.openjdk.org/jol/pull/53.diff
Fetch: git fetch https://git.openjdk.org/jol.git pull/53/head:pull/53
PR: https://git.openjdk.org/jol/pull/53
More information about the jol-dev
mailing list