Inconsistent results from GraphLayout vs GraphStats
Aleksey Shipilev
shade at redhat.com
Mon Jan 30 11:58:18 UTC 2023
On 1/29/23 17:14, Sebastian Zarnekow wrote:
> From my understanding, the results of GraphLayout.totalSize and GraphStats.totalSize should be the
> same for a given object graph. However, there is some inconsistency. The following test case fails
> for me. I'm not sure if that's a misunderstanding on my end or a bug in the processing of arrays:
I believe this is a bug fixed by:
https://github.com/openjdk/jol/commit/76c554a0f8fac92e00e4a887808201eb48c5c905
I cannot reproduce the failure on your test with JOL tip. If I revert the fix above, it starts to
fail. We are waiting for more PRs to land to JOL before releasing a new version with these bugfixes,
sorry for the delay.
--
Thanks,
-Aleksey
More information about the jol-dev
mailing list