Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8306724

Hotspot8 loop optimization resulted in incorrect results

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • openjdk8u362, 11, 17, 19, 20
    • hotspot
    • x86_64
    • linux

      ADDITIONAL SYSTEM INFORMATION :
      22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Mar 17 21:16:15 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

      A DESCRIPTION OF THE PROBLEM :
      We have identified a test case that causes optimization issues and have simplified it as much as possible to reduce the analysis cost for developers.However, during the simplification process, we found that reducing the complexity also reduced the likelihood of triggering the optimization issue. As a result, the code size of the test case we ultimately submitted is still relatively large. We apologize for this inconvenience. We calculated checksums for the variables involved in the Tester process to help identify the location of the optimization issue.

      openjdk version "1.8.0_362"
      OpenJDK Runtime Environment (Temurin)(build 1.8.0_362-b09)
      OpenJDK 64-Bit Server VM (Temurin)(build 25.362-b09, mixed mode)

      You can download the relevant test cases by accessing the following linkļ¼šhttps://drive.google.com/file/d/10d8vIGtwUKR3urz6qwzrrvCRShWVa2Ys/view?usp=share_link



      REGRESSION : Last worked in version 8u361

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      ./run javapath

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      jdk_linux_8_hotspot/bin/java -cp ./ compiler.c2.cr6646020.Tester
      CHECKSUM:1481826947
      jdk_linux_8_hotspot/bin/java -cp ./ -Xint compiler.c2.cr6646020.Tester
      CHECKSUM:1481826947
      jdk_linux_8_hotspot/bin/java -cp ./ -Xcomp compiler.c2.cr6646020.Tester
      CHECKSUM:1481826947
      jdk_linux_8_hotspot/bin/java -cp ./ compiler.c2.cr6646020.Tester
      CHECKSUM:1481826947
      jdk_linux_8_hotspot/bin/java -cp ./ -Xint compiler.c2.cr6646020.Tester
      CHECKSUM:1481826947
      jdk_linux_8_hotspot/bin/java -cp ./ -Xcomp compiler.c2.cr6646020.Tester
      CHECKSUM:1481826947
      jdk_linux_8_hotspot/bin/java -cp ./ compiler.c2.cr6646020.Tester
      CHECKSUM:1481826947
      jdk_linux_8_hotspot/bin/java -cp ./ -Xint compiler.c2.cr6646020.Tester
      CHECKSUM:1481826947
      jdk_linux_8_hotspot/bin/java -cp ./ -Xcomp compiler.c2.cr6646020.Tester
      CHECKSUM:1481826947
      jdk_linux_8_hotspot/bin/java -cp ./ compiler.c2.cr6646020.Tester
      CHECKSUM:1481826947
      jdk_linux_8_hotspot/bin/java -cp ./ -Xint compiler.c2.cr6646020.Tester
      CHECKSUM:1481826947
      jdk_linux_8_hotspot/bin/java -cp ./ -Xcomp compiler.c2.cr6646020.Tester
      CHECKSUM:1481826947
      jdk_linux_8_hotspot/bin/java -cp ./ compiler.c2.cr6646020.Tester
      CHECKSUM:1481826947
      jdk_linux_8_hotspot/bin/java -cp ./ -Xint compiler.c2.cr6646020.Tester
      CHECKSUM:1481826947
      jdk_linux_8_hotspot/bin/java -cp ./ -Xcomp compiler.c2.cr6646020.Tester
      CHECKSUM:1481826947
      ACTUAL -
      jdk_linux_8_hotspot/bin/java -cp ./ compiler.c2.cr6646020.Tester
      CHECKSUM:1481827255
      jdk_linux_8_hotspot/bin/java -cp ./ -Xint compiler.c2.cr6646020.Tester
      CHECKSUM:1481826947
      jdk_linux_8_hotspot/bin/java -cp ./ -Xcomp compiler.c2.cr6646020.Tester
      CHECKSUM:1481826947
      jdk_linux_8_hotspot/bin/java -cp ./ compiler.c2.cr6646020.Tester
      CHECKSUM:1481827258
      jdk_linux_8_hotspot/bin/java -cp ./ -Xint compiler.c2.cr6646020.Tester
      CHECKSUM:1481826947
      jdk_linux_8_hotspot/bin/java -cp ./ -Xcomp compiler.c2.cr6646020.Tester
      CHECKSUM:1481826947
      jdk_linux_8_hotspot/bin/java -cp ./ compiler.c2.cr6646020.Tester
      CHECKSUM:1481826947
      jdk_linux_8_hotspot/bin/java -cp ./ -Xint compiler.c2.cr6646020.Tester
      CHECKSUM:1481826947
      jdk_linux_8_hotspot/bin/java -cp ./ -Xcomp compiler.c2.cr6646020.Tester
      CHECKSUM:1481826947
      jdk_linux_8_hotspot/bin/java -cp ./ compiler.c2.cr6646020.Tester
      CHECKSUM:1481827269
      jdk_linux_8_hotspot/bin/java -cp ./ -Xint compiler.c2.cr6646020.Tester
      CHECKSUM:1481826947
      jdk_linux_8_hotspot/bin/java -cp ./ -Xcomp compiler.c2.cr6646020.Tester
      CHECKSUM:1481826947
      jdk_linux_8_hotspot/bin/java -cp ./ compiler.c2.cr6646020.Tester
      CHECKSUM:1481826947
      jdk_linux_8_hotspot/bin/java -cp ./ -Xint compiler.c2.cr6646020.Tester
      CHECKSUM:1481826947
      jdk_linux_8_hotspot/bin/java -cp ./ -Xcomp compiler.c2.cr6646020.Tester
      CHECKSUM:1481826947

      FREQUENCY : often


            thartmann Tobias Hartmann
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: