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

Setting the -Xcomp may cause different results in Hotspot11 and Hotspot16

XMLWordPrintable

    • generic
    • generic

      ADDITIONAL SYSTEM INFORMATION :
      openjdk version "11.0.16.1" 2022-08-12
      OpenJDK Runtime Environment Temurin-11.0.16.1+1 (build 11.0.16.1+1)
      OpenJDK 64-Bit Server VM Temurin-11.0.16.1+1 (build 11.0.16.1+1, mixed mode)

      openjdk version "16.0.2" 2021-07-20
      OpenJDK Runtime Environment Temurin-16.0.2+7 (build 16.0.2+7)
      OpenJDK 64-Bit Server VM Temurin-16.0.2+7 (build 16.0.2+7, mixed mode, sharing

      A DESCRIPTION OF THE PROBLEM :
      Inside the test case is a loop that computes the CHECKSUM value when an exception is caught. The results are different when -Xint and -Xcomp are set.

      To facilitate developer analysis, we uploaded the relevant test cases into Google Drive, which can be accessed at the following URL : https://drive.google.com/file/d/1asT3_L2Wi_1i182pf1YOZVnBaTF7SBa2/view?usp=share_link

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      java11 -Xcomp -cp . compiler.c2.Test7174363
      java11 -Xint -cp . compiler.c2.Test7174363

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      229410000
      229410000
      ACTUAL -
      202816230
      229410000

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

              Created:
              Updated:
              Resolved: