[lworld] RFR: 8311383: [lworld] Restoring inline class mirrors with CDS.
Tobias Hartmann
thartmann at openjdk.org
Thu Jul 13 12:07:17 UTC 2023
On Mon, 10 Jul 2023 01:32:33 GMT, Jatin Bhateja <jbhateja at openjdk.org> wrote:
> Inline class encapsulate following two mirror objects
> - Value mirror : primitive value class instance
> - Reference mirror : primitive reference class instance ( .ref)
>
> Currently, runtime allocates and updates java mirror corresponding to a klass in a scratch memory and dumps [1] these into shared archive. Skipping over allocating inline mirrors into scratch memory for the time being since they can be re-created while restoring unshared fields of inline class[2] during share archive read.
>
> [1] https://github.com/openjdk/valhalla/blob/lworld/src/hotspot/share/cds/heapShared.cpp#L392
> [2] https://github.com/openjdk/valhalla/blob/lworld/src/hotspot/share/oops/klass.cpp#L624
Looks reasonable to me.
-------------
Marked as reviewed by thartmann (Committer).
PR Review: https://git.openjdk.org/valhalla/pull/884#pullrequestreview-1528282425
More information about the valhalla-dev
mailing list