RFR: 8377712: ConstantPool of WeakReferenceKey is not deterministic in CDS archive
Ioi Lam
iklam at openjdk.org
Sat Feb 14 07:23:02 UTC 2026
On Thu, 12 Feb 2026 05:58:15 GMT, Chen Liang <liach at openjdk.org> wrote:
> Or a better fix would be removing the == path for all reference keys. There's no case where this hits because you are always creating a new strong key. Missing use of class constant means the equals method is completely unused.
As we discussed offline, I updated `ensureDeterministicAOTCache()` to call `WeakReferenceKey::equals()` instead.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/29678#issuecomment-3901302276
More information about the core-libs-dev
mailing list