< prev index next >

test/compiler/c2/cr7192963/TestLongVect.java

Print this page
rev 11557 : 8132919: use package in compiler tests
Reviewed-by: duke


  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 /**
  26  * @test
  27  * @bug 7192963
  28  * @summary assert(_in[req-1] == this) failed: Must pass arg count to 'new'
  29  *
  30  * @run main/othervm/timeout=400 -Xbatch -Xmx64m TestLongVect
  31  */
  32 


  33 public class TestLongVect {
  34   private static final int ARRLEN = 997;
  35   private static final int ITERS  = 11000;
  36   public static void main(String args[]) {
  37     System.out.println("Testing Long vectors");
  38     int errn = test();
  39     if (errn > 0) {
  40       System.err.println("FAILED: " + errn + " errors");
  41       System.exit(97);
  42     }
  43     System.out.println("PASSED");
  44   }
  45 
  46   static int test() {
  47     long[] a0 = new long[ARRLEN];
  48     long[] a1 = new long[ARRLEN];
  49     // Initialize
  50     for (int i=0; i<ARRLEN; i++) {
  51       a1[i] = (long)i;
  52     }




  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 /**
  26  * @test
  27  * @bug 7192963
  28  * @summary assert(_in[req-1] == this) failed: Must pass arg count to 'new'
  29  *
  30  * @run main/othervm/timeout=400 -Xbatch -Xmx64m compiler.c2.cr7192963.TestLongVect
  31  */
  32 
  33 package compiler.c2.cr7192963;
  34 
  35 public class TestLongVect {
  36   private static final int ARRLEN = 997;
  37   private static final int ITERS  = 11000;
  38   public static void main(String args[]) {
  39     System.out.println("Testing Long vectors");
  40     int errn = test();
  41     if (errn > 0) {
  42       System.err.println("FAILED: " + errn + " errors");
  43       System.exit(97);
  44     }
  45     System.out.println("PASSED");
  46   }
  47 
  48   static int test() {
  49     long[] a0 = new long[ARRLEN];
  50     long[] a1 = new long[ARRLEN];
  51     // Initialize
  52     for (int i=0; i<ARRLEN; i++) {
  53       a1[i] = (long)i;
  54     }


< prev index next >