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

Thomas Stuefe stuefe at openjdk.org
Wed May 1 11:37:20 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 259 additional commits since the last revision:

 - rework
 - 8318682: SA decoding of scalar replaced objects is broken
   
   Reviewed-by: cjplummer, cslucas
 - 8331207: Misleading example in DateFormat#parse docs
   
   Reviewed-by: naoto
 - 8329223: Parallel: Parallel GC resizes heap even if -Xms = -Xmx
   
   Reviewed-by: ayang, gli
 - 8331252: C2: MergeStores: handle negative shift values
   
   Reviewed-by: kvn, shade
 - 8327647: Occasional SIGSEGV in markWord::displaced_mark_helper() for SPECjvm2008 sunflow
   
   Reviewed-by: coleenp, fyang, dlong
 - 8326742: Change compiler tests without additional VM flags from @run driver to @run main
   
   Reviewed-by: kvn, thartmann, chagedorn
 - 8329138: Convert JFR FileForceEvent to static mirror event
   
   Reviewed-by: alanb, egahlin
 - 8331346: Update PreviewFeature of STREAM_GATHERERS to JEP-473
   
   Reviewed-by: pminborg, alanb
 - 8331410: Remove unused MemAllocator::mem_allocate_inside_tlab
   
   Reviewed-by: tschatzl, gli
 - ... and 249 more: https://git.openjdk.org/jdk/compare/192c3f81...45ee254c

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

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

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

  Stats: 78107 lines in 2220 files changed: 35219 ins; 34213 del; 8675 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