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:
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.