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

Hotspot produces different results when set -Xint and -Xcomp

XMLWordPrintable

    • generic
    • generic

      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 :
      The test case includes a recursive call to opt1 that computes the result of CHECKSUM. The program logic is very clear, but the results of interpreted execution and compiled execution are different. We tried to execute the same test case using OpenJ9 and showed that Openj9 results are consistent with hotshot -Xcomp results.

      To facilitate analysis by developers, you can download the test case from the URL below:


      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      java8 -Xint demo11
      java8 -Xcomp demo11

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      -5796990
      -5796990
      ACTUAL -
      -5010558
      -5796990

      FREQUENCY : always


            sswsharm swati sharma (Inactive)
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: