[jdk21u-dev] RFR: 8343019: Primitive caches must use boxed instances from the archive

Satyen Subramaniam ssubramaniam at openjdk.org
Sat Mar 15 05:14:05 UTC 2025


Backporting JDK-8343019: Primitive caches must use boxed instances from the archive. Fixes bug with code that uses CDS archived cache instances, since the boxed equality can break when comparing the CDS-archived value and the Integer cached value recreated at runtime, in cases when the primitive cache is dropped. Ran GHA Sanity Checks, and local Tier 1, and Tier 2 tests. Patch is clean.

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

Commit messages:
 - Backport 7c36fa7e175c01dd994cd8f1ef9fd942dbddbce0

Changes: https://git.openjdk.org/jdk21u-dev/pull/1497/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk21u-dev&pr=1497&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8343019
  Stats: 108 lines in 8 files changed: 75 ins; 8 del; 25 mod
  Patch: https://git.openjdk.org/jdk21u-dev/pull/1497.diff
  Fetch: git fetch https://git.openjdk.org/jdk21u-dev.git pull/1497/head:pull/1497

PR: https://git.openjdk.org/jdk21u-dev/pull/1497


More information about the jdk-updates-dev mailing list