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

Incorrect result when switching to C2 OSR compilation from C1

XMLWordPrintable

    • b13

        ADDITIONAL SYSTEM INFORMATION :
        Microsoft Windows 10 Professional
        10.0.19044 Build 19044
        AMD Ryzen 5 5600G with Radeon Graphics 3.90 GHz
        Memory 32 GB

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

        openjdk version "11.0.15" 2022-04-19
        OpenJDK Runtime Environment Temurin-11.0.15+10 (build 11.0.15+10)
        OpenJDK 64-Bit Server VM Temurin-11.0.15+10 (build 11.0.15+10, mixed mode)

        A DESCRIPTION OF THE PROBLEM :
        When we try to use Hotspot to execute test cases, we may get incorrect output. In the test case, we computed the checksum within the loop, but optimizing the loop might have resulted in us getting the wrong output. The test case execution result is not fixed.
        In addition, we tried to set the -Xint flag at execution time so that we would get the correct output. So we think the issue may be related to JIT optimization.

        STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
        I shared the test case via Google Drive. You can download the test case using the link below.
        https://drive.google.com/file/d/1CY_mcL3pWMc4KsCpcUd-Ps6hs8JB631H/view?usp=sharing


        FREQUENCY : always


          1. testCase14.zip
            1 kB
          2. Test2.java
            0.3 kB
          3. Helper.jasm
            1 kB
          4. Helper.class
            0.4 kB
          5. check_sum.class
            0.3 kB

              roland Roland Westrelin
              webbuggrp Webbug Group
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

                Created:
                Updated:
                Resolved: