JDK 9 RFR of 8041683: java/math/BigInteger/BitLengthOverflow.java failing with OOME
Brian Burkhalter
brian.burkhalter at oracle.com
Fri Apr 25 21:26:09 UTC 2014
Hello,
Issue: https://bugs.openjdk.java.net/browse/JDK-8041683
Patch: http://cr.openjdk.java.net/~bpb/8041683/webrev.00/
It’s not really a solution but the patch changes BitLengthOverflow and DoubleValueOverflow to catch the OOME and print a warning to STDERR instead of failing outright. These OOMEs do not occur in JPRT runs with default parameters, so at least this patch would allow the tests to run successfully when there is enough memory but not to cause the test run to fail when there is not enough memory. This is more test coverage than never running the tests.
Thanks,
Brian
More information about the core-libs-dev
mailing list