[lworld] RFR: 8311383: Restoring inline class mirrors with CDS.

Jatin Bhateja jbhateja at openjdk.org
Mon Jul 10 01:38:26 UTC 2023


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

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

Commit messages:
 - 8311383: Restoring inline class mirrors with CDS.

Changes: https://git.openjdk.org/valhalla/pull/884/files
 Webrev: https://webrevs.openjdk.org/?repo=valhalla&pr=884&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8311383
  Stats: 8 lines in 1 file changed: 5 ins; 0 del; 3 mod
  Patch: https://git.openjdk.org/valhalla/pull/884.diff
  Fetch: git fetch https://git.openjdk.org/valhalla.git pull/884/head:pull/884

PR: https://git.openjdk.org/valhalla/pull/884



More information about the valhalla-dev mailing list