[lworld] RFR: 8272041: [lworld] CDS heap dump fails with primitive objects

Frederic Parain fparain at openjdk.java.net
Fri Aug 6 20:24:58 UTC 2021


On Fri, 6 Aug 2021 04:47:32 GMT, Ioi Lam <iklam at openjdk.org> wrote:

> Two simple fixes to handle primitive objects when dumping the CDS heap:
> 
> - When dumping the objects, we enter them into a hashtable. Do not use `oopDesc::identity_hash()` as the hashcode for this table.
> - When resetting the header of archived objects, do not call `oopDesc::identity_hash()` on primitive objects.

Ioi,

Thank you for the additional effort to measure statistics of the hashtable.

Fred

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

PR: https://git.openjdk.java.net/valhalla/pull/525


More information about the valhalla-dev mailing list