We are seeing intermittent failures (12 times in Jan 2026) where the CDS 
archives generated in the JDK build is not deterministic.

The symptom is that (perhaps due to the peculiarity of hash codes and memory 
addressing??) the constant pool entry for `ReferenceKey<?>` in the 
`WeakReferenceKey` class is not resolved when the failure happens.

The fix is for the JVM to call a method in `WeakReferenceKey` to force this 
entry to be resolved.

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

Commit messages:
 - 8370855: ConstantPool of WeakReferenceKey is not deterministic in CDS archive

Changes: https://git.openjdk.org/jdk/pull/29678/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=29678&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8377712
  Stats: 41 lines in 4 files changed: 39 ins; 1 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/29678.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/29678/head:pull/29678

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

Reply via email to