RFR (XS) 8221401: [TESTBUG] java/math/BigInteger/LargeValueExceptions.java should be disabled on 32-bit platforms
Aleksey Shipilev
shade at redhat.com
Mon Mar 25 14:33:47 UTC 2019
Bug:
https://bugs.openjdk.java.net/browse/JDK-8221401
My major concern is to make tier1 passing on x86_32. This is one of the tests that fail. Smaller
heap size does not fit this test case, unfortunately. So, we have to disable it for 32-bit builds.
In fact, somebody did it already for 8u backport, but not upstream!
Fix:
diff -r 59816a32df2c test/jdk/java/math/BigInteger/LargeValueExceptions.java
--- a/test/jdk/java/math/BigInteger/LargeValueExceptions.java Mon Mar 25 13:12:37 2019 +0100
+++ b/test/jdk/java/math/BigInteger/LargeValueExceptions.java Mon Mar 25 15:29:16 2019 +0100
@@ -23,11 +23,11 @@
/*
* @test
* @bug 8200698
* @summary Tests that exceptions are thrown for ops which would overflow
- * @requires os.maxMemory >= 4g
+ * @requires (sun.arch.data.model == "64" & os.maxMemory >= 4g)
* @run testng/othervm -Xmx4g LargeValueExceptions
*/
import java.math.BigInteger;
import static java.math.BigInteger.ONE;
import org.testng.annotations.Test;
Testing: Linux {x86_64, x86_32} fastdebug build and test, jdk-submit (running)
Thanks,
-Aleksey
More information about the core-libs-dev
mailing list