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

C1 incorrectly folds mismatched loads from stable arrays

    XMLWordPrintable

Details

    • b112
    • b126
    • generic
    • Verified

    Description

      The test from JCK-runtime suite fails in case of compilation mode for any VM (-Xcom).

      For mixed mode and interpreter mode the test passes. See logs:

      user@host:/export/local/sk$ ./jdk9_120_p1/bin/java -Xcomp -showversion NewTestCase
      java version "9-ea"
      Java(TM) SE Runtime Environment (build 9-ea+120)
      Java HotSpot(TM) Minimal VM (build 9-ea+120, compiled mode)

      method setIndex(int) return incorrect char
        returned char is f
        expected char is t
      public void setIndex(int index)
      user@host:/export/local/sk$ ./jdk9_120_p1/bin/java -Xint -minimal -showversion NewTestCase
      java version "9-ea"
      Java(TM) SE Runtime Environment (build 9-ea+120)
      Java HotSpot(TM) Minimal VM (build 9-ea+120, interpreted mode)

      OKAY
      user@host:/export/local/sk$ ./jdk9_120_p1/bin/java -Xmixed -minimal -showversion NewTestCase
      java version "9-ea"
      Java(TM) SE Runtime Environment (build 9-ea+120)
      Java HotSpot(TM) Minimal VM (build 9-ea+120, mixed mode)

      OKAY

      Attachments

        Issue Links

          Activity

            People

              thartmann Tobias Hartmann
              skovalev Sergei Kovalev (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: