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

Thomas Stuefe stuefe at openjdk.org
Thu Apr 18 07:51:22 UTC 2024


> CDS archive contains archived objects with identity hashes.
> 
> These hashes are deliberately preserved or even generated during dumping. They are generated based on a seed that is initialized randomly on a per-thread basis. These generations precede CDS dump initialization, so they are not affected by the init_random call there, nor would they be affected by [JDK-8323900](https://bugs.openjdk.org/browse/JDK-8323900).
> 
> A random seed will not work for dumping archives since it prevents reproducible archive generation. Therefore, when dumping, these seeds must be initiated in a reproducible way.

Thomas Stuefe has updated the pull request incrementally with one additional commit since the last revision:

  final version

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/18735/files
  - new: https://git.openjdk.org/jdk/pull/18735/files/fe6c82d6..192c3f81

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=18735&range=02
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18735&range=01-02

  Stats: 81 lines in 3 files changed: 44 ins; 30 del; 7 mod
  Patch: https://git.openjdk.org/jdk/pull/18735.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/18735/head:pull/18735

PR: https://git.openjdk.org/jdk/pull/18735


More information about the hotspot-runtime-dev mailing list