Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8141954 | emb-9 | Roland Westrelin | P3 | Resolved | Fixed | team |
The range check optimization introduced by JDK-8073480 replaces checks of the form (i < 0 && i > length - 1) with an unsigned comparison of i and (length - 1). If length is 0, i is compared to -1 and the range check does *not* fail.
Applying the attached patch to TestBadFoldCompare.java reproduces the problem.
Applying the attached patch to TestBadFoldCompare.java reproduces the problem.
- backported by
-
JDK-8141954 C2 replaces range checks by unsigned comparison with -1
- Resolved
- relates to
-
JDK-8081823 C2 performs unsigned comparison against -1
- Resolved
-
JDK-8073480 C2 should optimize explicit range checks
- Resolved