< prev index next >
test/java/util/Arrays/Big.java
Print this page
rev 17066 : [mq]: tests-0.patch
*** 1,7 ****
/*
! * Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
--- 1,7 ----
/*
! * Copyright (c) 2006, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*** 28,38 ****
* @author Martin Buchholz
*/
// A proper regression test for 5045582 requires too much memory.
// If you have a really big machine, run like this:
! // java -d64 -Xms25g -Xmx25g Big 30
import java.util.*;
public class Big {
--- 28,38 ----
* @author Martin Buchholz
*/
// A proper regression test for 5045582 requires too much memory.
// If you have a really big machine, run like this:
! // java -Xms25g -Xmx25g Big 30
import java.util.*;
public class Big {
*** 66,76 ****
equal(a[n-3], (byte) 43);
equal(a[n-4], (byte) 0);
}
// To test Object arrays larger than 1<<30, you need 13GB. Run like:
! // java -d64 -Xms13g -Xmx13g Big 30 2
if ((tasks & 0x2) != 0) {
System.out.println("Integer[]");
System.gc();
Integer[] a = new Integer[n];
Integer ZERO = 0;
--- 66,76 ----
equal(a[n-3], (byte) 43);
equal(a[n-4], (byte) 0);
}
// To test Object arrays larger than 1<<30, you need 13GB. Run like:
! // java -Xms13g -Xmx13g Big 30 2
if ((tasks & 0x2) != 0) {
System.out.println("Integer[]");
System.gc();
Integer[] a = new Integer[n];
Integer ZERO = 0;
< prev index next >