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

Mandy Chung mchung at openjdk.java.net
Fri Aug 6 17:09:46 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.

Looks good.  I verified with the patch that converts some JDK classes to ref-default primitive class.


Marked as reviewed by mchung (Committer).

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

More information about the valhalla-dev mailing list