< prev index next >

test/jdk/java/math/BigInteger/largeMemory/SymmetricRangeTests.java

Print this page
rev 58046 : 8239007: java/math/BigInteger/largeMemory/ tests should be disabled on 32-bit platforms
Reviewed-by: XXX


   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 /*
  25  * @test
  26  * @bug 6910473 8021204 8021203 9005933 8074460 8078672
  27  * @summary Test range of BigInteger values (use -Dseed=X to set PRNG seed)
  28  * @library /test/lib
  29  * @requires os.maxMemory > 8g
  30  * @run main/timeout=180/othervm -Xmx8g SymmetricRangeTests
  31  * @author Dmitry Nadezhin
  32  * @key randomness
  33  */
  34 import java.io.ByteArrayInputStream;
  35 import java.io.ByteArrayOutputStream;
  36 import java.io.IOException;
  37 import java.io.ObjectInputStream;
  38 import java.io.ObjectOutputStream;
  39 import java.util.Arrays;
  40 import java.math.BigInteger;
  41 import java.util.Random;
  42 import jdk.test.lib.RandomFactory;
  43 
  44 public class SymmetricRangeTests {
  45 
  46     private static final BigInteger MAX_VALUE = makeMaxValue();
  47     private static final BigInteger MIN_VALUE = MAX_VALUE.negate();
  48 
  49     private static BigInteger makeMaxValue() {




   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 /*
  25  * @test
  26  * @bug 6910473 8021204 8021203 9005933 8074460 8078672
  27  * @summary Test range of BigInteger values (use -Dseed=X to set PRNG seed)
  28  * @library /test/lib
  29  * @requires (sun.arch.data.model == "64" & os.maxMemory > 8g)
  30  * @run main/timeout=180/othervm -Xmx8g SymmetricRangeTests
  31  * @author Dmitry Nadezhin
  32  * @key randomness
  33  */
  34 import java.io.ByteArrayInputStream;
  35 import java.io.ByteArrayOutputStream;
  36 import java.io.IOException;
  37 import java.io.ObjectInputStream;
  38 import java.io.ObjectOutputStream;
  39 import java.util.Arrays;
  40 import java.math.BigInteger;
  41 import java.util.Random;
  42 import jdk.test.lib.RandomFactory;
  43 
  44 public class SymmetricRangeTests {
  45 
  46     private static final BigInteger MAX_VALUE = makeMaxValue();
  47     private static final BigInteger MIN_VALUE = MAX_VALUE.negate();
  48 
  49     private static BigInteger makeMaxValue() {


< prev index next >