RFR: 8377712: ConstantPool of WeakReferenceKey is not deterministic in CDS archive [v2]
Ioi Lam
iklam at openjdk.org
Sat Feb 14 07:23:01 UTC 2026
> 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.
Ioi Lam has updated the pull request incrementally with one additional commit since the last revision:
@liach comments
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/29678/files
- new: https://git.openjdk.org/jdk/pull/29678/files/ecf3113f..184d575d
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=29678&range=01
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=29678&range=00-01
Stats: 15 lines in 2 files changed: 2 ins; 2 del; 11 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
More information about the core-libs-dev
mailing list