[lworld] RFR: 8369921: [lworld] Remove caches of primitive wrapper classes

Roger Riggs rriggs at openjdk.org
Mon Oct 20 13:39:05 UTC 2025


On Fri, 17 Oct 2025 21:59:00 GMT, Joe Darcy <darcy at openjdk.org> wrote:

> No tests need to be updated; `java/lang/Integer/ValueOf.java` passes with this change?

The tests use `==` (acmp) to compare. In Valhalla `acmp` for value classes does a field by field (recursive) comparison.
It is not possible to detect a difference between any two value class instances (assuming their fields have the same values) regardless of their source.

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

PR Comment: https://git.openjdk.org/valhalla/pull/1685#issuecomment-3422098868


More information about the valhalla-dev mailing list