-
Bug
-
Resolution: Fixed
-
P2
-
21, 22
-
b18
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8317503 | 21.0.2 | Aleksei Voitylov | P2 | Closed | Fixed | b02 |
After changes for JDK-8302163, if two UTF-16 strings come to compare with length that is close to Integer.MIN_VALUE, attempt to divide the length by UTF-16 symbol size will overflow the int type and cause wrong value of length to be passed to the next comparison step.
This bug causes JCK test RegionMatches1Tests to fail on ARM32 platform where CompactStrings are disabled by default. This test also fails on other platforms with -XX:-CompactStrings.
s2.regionMatches(8,s3,2,Integer.MIN_VALUE+1) = false
This bug causes JCK test RegionMatches1Tests to fail on ARM32 platform where CompactStrings are disabled by default. This test also fails on other platforms with -XX:-CompactStrings.
s2.regionMatches(8,s3,2,Integer.MIN_VALUE+1) = false
- backported by
-
JDK-8317503 RegionMatches1Tests fails if CompactStrings are disabled after JDK-8302163
- Closed
- relates to
-
JDK-8302163 Speed up various String comparison methods with ArraysSupport.mismatch
- Resolved
- links to
-
Commit openjdk/jdk21u/6a4e4920
-
Commit openjdk/jdk/cfcbfc6c
-
Review openjdk/jdk21u/216
-
Review openjdk/jdk/15906
(1 links to)