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

java/math/BigInteger/LargeValueExceptions.java test should be disabled on 32-bit platforms

    Details

    • Subcomponent:
    • Resolved In Build:
      b14

      Backports

        Description

        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;
         

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  shade Aleksey Shipilev
                  Reporter:
                  shade Aleksey Shipilev
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: