-
Bug
-
Resolution: Fixed
-
P4
-
11, 12, 13
-
b14
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8221773 | 12.0.2 | Aleksey Shipilev | P4 | Resolved | Fixed | b02 |
JDK-8221831 | 11.0.4 | Aleksey Shipilev | P4 | Resolved | Fixed | b01 |
Current java/math/BigInteger/LargeValueExceptions.java requests -Xmx4G. This is excessive, as test needs only ~1G on default x86_64, or even with -XX:-UseCompressedOops.
Requesting 4G makes test fail on x86_32, which is very unfortunate.
Reducing to -Xmx2g makes test pass on x86_32 without breaking x86_64:
diff -r d25b24c70126 test/jdk/java/math/BigInteger/LargeValueExceptions.java
--- a/test/jdk/java/math/BigInteger/LargeValueExceptions.java Mon Mar 25 00:57:03 2019 -0400
+++ b/test/jdk/java/math/BigInteger/LargeValueExceptions.java Mon Mar 25 13:06:36 2019 +0100
@@ -23,12 +23,11 @@
/*
* @test
* @bug 8200698
* @summary Tests that exceptions are thrown for ops which would overflow
- * @requires os.maxMemory >= 4g
- * @run testng/othervm -Xmx4g LargeValueExceptions
+ * @run testng/othervm -Xmx2g LargeValueExceptions
*/
import java.math.BigInteger;
import static java.math.BigInteger.ONE;
import org.testng.annotations.Test;
Requesting 4G makes test fail on x86_32, which is very unfortunate.
Reducing to -Xmx2g makes test pass on x86_32 without breaking x86_64:
diff -r d25b24c70126 test/jdk/java/math/BigInteger/LargeValueExceptions.java
--- a/test/jdk/java/math/BigInteger/LargeValueExceptions.java Mon Mar 25 00:57:03 2019 -0400
+++ b/test/jdk/java/math/BigInteger/LargeValueExceptions.java Mon Mar 25 13:06:36 2019 +0100
@@ -23,12 +23,11 @@
/*
* @test
* @bug 8200698
* @summary Tests that exceptions are thrown for ops which would overflow
- * @requires os.maxMemory >= 4g
- * @run testng/othervm -Xmx4g LargeValueExceptions
+ * @run testng/othervm -Xmx2g LargeValueExceptions
*/
import java.math.BigInteger;
import static java.math.BigInteger.ONE;
import org.testng.annotations.Test;
- backported by
-
JDK-8221773 java/math/BigInteger/LargeValueExceptions.java test should be disabled on 32-bit platforms
- Resolved
-
JDK-8221831 java/math/BigInteger/LargeValueExceptions.java test should be disabled on 32-bit platforms
- Resolved
- relates to
-
JDK-8239007 java/math/BigInteger/largeMemory/ tests should be disabled on 32-bit platforms
- Resolved