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

JCK tests produce incorrect results with C2

    XMLWordPrintable

Details

    • b42
    • x86
    • os_x
    • Verified

    Backports

      Description

        Running with -Xcomp -Xbatch -XX-TieredCompilation jck tests
        api/java_time/tck/java/time/index.html#TCKLocalDate and api/java_time/tck/java/time/index.html#TCKDuration are failing.


        There seems to miss a cast from long to int:
        java.time.DateTimeException: Invalid value for EpochDay (valid values -365243219162 - 365241780471): -9223371671612995343

        I also see this with my own build of the current jdk/jdk repo.

        See also attached output.

        Seen with
        java version "9.0.1"
        Java(TM) SE Runtime Environment (build 9.0.1+11)
        Java HotSpot(TM) 64-Bit Server VM (build 9.0.1+11, mixed mode)

        Commandline to reproduce:
        bin/java -cp .../JCK-runtime-9/classes/:.../JCK-runtime-9/lib/extensions/ -Xcomp -Xbatch -XX:-TieredCompilation com.oracle.tck.lib.testng.TestNGRunner -testclass:tck.java.time.TCKLocalDate

        Attachments

          Issue Links

            Activity

              People

                rbackman Rickard Backman (Inactive)
                goetz Goetz Lindenmaier
                Votes:
                0 Vote for this issue
                Watchers:
                11 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: