[jdk21u-dev] RFR: 8330027: Identity hashes of archived objects must be based on a reproducible random seed

Thomas Stuefe stuefe at openjdk.org
Sat May 11 05:28:07 UTC 2024


This fixes an issue with CDS archive reproducibility that can happen under rare circumstances. See original JBS issue for details.

I had to manually resolve the hunk in src/hotspot/share/cds/heapShared.cpp because both

    8251330: Reorder CDS archived heap to speed up relocation
    8329431: Improve speed of writing CDS heap objects
    were missing.

I also had to change `CDSConfig::is_dumping_static_archive()` - which only exists in JDK 22 and later - to the technically equal `DumpSharedSpaces`.

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

Commit messages:
 - 8330027: Identity hashes of archived objects must be based on a reproducible random seed

Changes: https://git.openjdk.org/jdk21u-dev/pull/562/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk21u-dev&pr=562&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8330027
  Stats: 13 lines in 3 files changed: 3 ins; 7 del; 3 mod
  Patch: https://git.openjdk.org/jdk21u-dev/pull/562.diff
  Fetch: git fetch https://git.openjdk.org/jdk21u-dev.git pull/562/head:pull/562

PR: https://git.openjdk.org/jdk21u-dev/pull/562


More information about the jdk-updates-dev mailing list