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

java.time.Instant.create failing since hs25-b56

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: hs25, 8
    • Fix Version/s: hs25
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Introduced In Build:
      b56
    • Introduced In Version:
    • Resolved In Build:
      b58
    • CPU:
      x86_64
    • Verification:
      Not verified

      Backports

        Description


        jdk8/tl picked up hs25-b56 yesterday and we seem to have picked up a regression.

        Approximately 15 tests that use java.time.Instant started to fail with:
           java.time.DateTimeException: Instant exceeds minimum or maximum instant

        Sample tests in the jdk repository are:
          test/java/util/Calendar/JavatimeTest.java
          test/java/nio/file/attribute/FileTime/Basic.java

        and many of the JSR-310 regression and JCK tests.

        The tests pass if run with -Xint although it seems to cause warnings to be emitted:

          Java HotSpot(TM) 64-Bit Server VM warning: Shutting down compiler C2 (no space to run compilers)
          Java HotSpot(TM) 64-Bit Server VM warning: Shutting down compiler C1 (no space to run compilers)

        The method causing the problem appears to Instant.create so running with -XX:CompileCommandFile pointing to a .hotspot_compiler file with:
          exclude java/time/Instant create

        can be used to workaround the issue for now.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  rbackman Rickard Backman
                  Reporter:
                  alanb Alan Bateman
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  13 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: