RFR: JDK-8176520: Improve the accuracy of the instance size in hprof heap dumps [v2]

Chris Plummer cjplummer at openjdk.org
Sat Feb 17 01:42:56 UTC 2024


On Thu, 15 Feb 2024 02:45:26 GMT, Alex Menkov <amenkov at openjdk.org> wrote:

>> The fix updates heap dumpers to report correct instance size value for HPROF_GC_CLASS_DUMP records (currently it's reported as size of all instance fields)
>> 
>> Testing: tier1, tier2, tier5-svc
>
> Alex Menkov has updated the pull request incrementally with one additional commit since the last revision:
> 
>   test bug id

Can't the instance size as currently computed be computed by hprof tool vendors using class information already present in the hprof file (list of class fields and types, class hierarchy info, etc)? If so, then they have recourse if they prefer the current representation of "instance size", and manually computing the size in this manner would work with older hprof files too.

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

PR Comment: https://git.openjdk.org/jdk/pull/17855#issuecomment-1949580967


More information about the serviceability-dev mailing list