JDK-8369921 : [lworld] Remove caches of primitive wrapper classes
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2025-10-15
  • Updated: 2025-10-24
  • Resolved: 2025-10-24
Related Reports
Relates :  
Description
Valhalla changes the primitive wrapper classes from identity classes to value classes.  As values, the cached small values in Byte, Short, Character, Integer, and Long are no longer valuable and should be removed.

The specification needs to be changed to remove the guarantee about caching small values.
Comments
A pull request was submitted for review. Branch: lworld URL: https://git.openjdk.org/valhalla/pull/1685 Date: 2025-10-17 19:28:37 +0000
17-10-2025