JDK-8244086 : Following 8241492, strip mined loop may run extra iterations
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 15
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2020-04-29
  • Updated: 2024-10-17
  • Resolved: 2020-06-02
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 15
15 b26Fixed
Related Reports
Relates :  
Description
For a method like this:

    private static int test1(int start, int stop) {
        int sum = 0;
        int i = start;
        do {
            synchronized (new Object()) {
            }
            sum += i;
            i++;
        } while (i < stop);
        return sum;
    }

when run with stop < start, the body should be run once (there is no test to guard entry in the method) but is run LoopStripMiningIter.
Comments
URL: https://hg.openjdk.java.net/jdk/jdk/rev/61a715dc7271 User: roland Date: 2020-06-02 14:57:39 +0000
02-06-2020