[master] RFR: 8318011: [Lilliput] Fix CDS narrowKlass encoding

Roman Kennke rkennke at openjdk.org
Thu Oct 12 14:26:15 UTC 2023


With Lilliput, we need to store the correct narrowKlass in the archived Klass instances. For this, we need the ArchiveHeapWriter::precomputed_narrow_klass_shift. However, ArchiveHeapWriter is only available when building with INCLUDE_CDS_JAVA_HEAP, i.e. currently not with Windows. This field should be moved to ArchiveBuilder, so that we can access it even when INCLUDE_CDS_JAVA_HEAP is not enabled.

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

Commit messages:
 - 8318011: [Lilliput] Fix CDS narrowKlass encoding

Changes: https://git.openjdk.org/lilliput/pull/112/files
 Webrev: https://webrevs.openjdk.org/?repo=lilliput&pr=112&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8318011
  Stats: 33 lines in 5 files changed: 12 ins; 15 del; 6 mod
  Patch: https://git.openjdk.org/lilliput/pull/112.diff
  Fetch: git fetch https://git.openjdk.org/lilliput.git pull/112/head:pull/112

PR: https://git.openjdk.org/lilliput/pull/112


More information about the lilliput-dev mailing list