-
Type:
Enhancement
-
Resolution: Fixed
-
Priority:
P4
-
Affects Version/s: None
-
Component/s: core-libs
-
b18
Across the JDK code base, `Integer.MAX_VALUE - 8` is used as a conservative value for the maximum array size supported in the JVM.
Code using this number could benefit from using the constant ArraySupport.SOFT_MAX_ARRAY_LENGTH instead, which also has good documentation.
This issue focuses on code and tests in java.base, there are still a few instances outside java.base which are not in scope for this change.
Code using this number could benefit from using the constant ArraySupport.SOFT_MAX_ARRAY_LENGTH instead, which also has good documentation.
This issue focuses on code and tests in java.base, there are still a few instances outside java.base which are not in scope for this change.
- links to
-
Commit(master)
openjdk/jdk/0f381137
-
Review(master)
openjdk/jdk/21268